The C Programs
An ultimate blog where you can find almost all C programs.....!!
Pages
Home
Contact Us
Monday 30 April 2012
C program to print ASCII value of a character
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
char ch;
clrscr();
//to clear the screen
printf("Enter any character:");
scanf("%c",&ch);
a=ch;
printf("ASCII value of %c is %d",ch,a);
getch();
//to stop the screen
}
C program to print ASCII value of a character
2012-04-30T06:40:00-07:00
Neeraj Mishra
Basic|
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)