#include<stdio.h>
#include<conio.h>
/* To find ASCII code of a character */
Void main()
{
char ch;
clrscr();
printf("Enter a character:");
scanf("%c",&ch);
printf("ASCII code: %d",ch);
getch();
}
#include<conio.h>
/* To find ASCII code of a character */
Void main()
{
char ch;
clrscr();
printf("Enter a character:");
scanf("%c",&ch);
printf("ASCII code: %d",ch);
getch();
}
No comments:
Post a Comment