MyComputerWorld
Labels
C PROGRAMS (Arrays Pointers and Structures)
(32)
Computer Tips and Tricks
(26)
Did You Know?
(18)
Downloads
(4)
Various Programs in C
(18)
Tuesday, 23 April 2013
C Program to Find ASCII Value of a Character
#include <stdio.h>
#include <conio.h>
int main()
{
char c;
printf("Enter a character: ");
scanf("%c",&c); /* Takes a character from user */
printf("ASCII value of %c = %d",c,c);
getch();
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment