Tutorial online
Showing posts with label
ascii
.
Show all posts
Showing posts with label
ascii
.
Show all posts
Wednesday, February 18, 2015
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
}
Read more »
Older Posts
Home
Subscribe to:
Posts (Atom)