Code Snippets C

#include
#include
int main(void)
{
char ch;
printf("Enter a char: ");
ch = getchar();
printf("\n Its ASCII code is %d", ch);
return 0;
}