Code
// WAP to find ascii value of a character... # include <stdio.h> int main (){ char g; printf("Enter a character:\n"); scanf("%c",&g); printf("Ascii value of %c is:\n%d",g,g); return 0; }
Output
Enter a character: h Ascii value of h is: 104