Home
User Guide
DB Recovery
Download
Documents
FAQ
Books
About Me
C Programs
Stats

/* Program# 32
   date : 25-12-2008
   ASCII value of char
*/

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

output:
$ gcc p32.c
$ ./a.out

Enter a character :a

ASCII value of a is 97 
$ 





Powered by
Open Source Programmers