Created
December 12, 2014 11:14
-
-
Save scratchyourbrain/2fa2cc61fc62cefc0816 to your computer and use it in GitHub Desktop.
c program to find ascii value of a character
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
/* to find ASCII value of a character entered by user */ | |
#include <stdio.h> | |
int main() | |
{ | |
char c; | |
printf("Enter a character: "); | |
scanf("%c",&c); | |
printf("ASCII value of %c = %d\n",c,c); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment