Code -
//__________Program to know the ASCII value of a character____________
//__________Including header files___________
#include<stdio.h>
#include<conio.h> //__________Mainly included for the getch() function________
int main()
{
char input_character;
printf("\n\n\t__ Program to display the ASCII value of a character ___");
printf("\n\n\n Enter Character - ");
input_character = getche();
printf("\n\n\t\t __ ASCII value for %c is %d __ ",input_character, input_character);
getch();
return 0;
}
Follow Us on Facebook - Assignment Hub
No comments:
Post a Comment