Search This Blog

July 11, 2014

C Program to find ASCII value of a character entered by user

#include <stdio.h>
#include <conio.h>
int main( )
{
char c;
printf("Enter a Character\n");
scanf("%c",&c);
printf("ASCII value of %c=%d",c,c);
        getch ();
return 0;
}

No comments:

Post a Comment

Earn Money From Home