ASCII is the most important part of the computer. Computer works on ASCII code. The computer does not understand the character of the keyboard, but works on the ASCII code. Each character has a different ASCII code. Computer has 256 main ASCII codes.
Here we will print the ASCII values of the characters stored in the computer in the C program
#include<stdio.h> #include<conio.h> void main() { char ch; printf("\n Please Enter any character \n"); scanf("%c",&ch); printf("\n The ASCII value of given character = %d",ch); getch(); }