C Program Print ASCII Value Of A Given Character :
//C Program Print ASCII Value Of A Given Character
#include<stdio.h>
#include<conio.h>
void main()
{
int num;
char ch;
clrscr();
printf("Enter any characte:- ");
scanf("%c",&ch);
num=ch;
printf("ASCII value of %c is %d",ch,num);
getch();
}
OUTPUT
No comments:
Post a Comment