Created
June 30, 2017 15:23
-
-
Save echo-akash/b3481b865170d54d6f0a13ec5607131a to your computer and use it in GitHub Desktop.
Take a character input and print its corresponding ASCII value in C Programming Language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
char ch; | |
printf("enter any character\n"); | |
scanf("%c",&ch); | |
printf("\nASCII value of entered character is:%d",ch); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment