Prog#032: Ascii value of a char

/* 
Program#32
Ascii value of a char
*/

#include <stdio.h>
main(){
char a;
printf("\nEnter a character :");
scanf("%c",&a);
printf("\nASCII value of %c is %d \n",a,a);
}