ASCII values in C:
ASCII stands for American Standard Code for Information Interchange. This is a character encoding scheme used in electronics communication. Each ASCII code requires 7 bits in memory.
The ASCII table is given bellow :
Example :
C
C
#include<stdio.h>
int main()
{
char a;
printf(“Enter a character : “);
scanf(“%c”,&ch);
printf(“\n The ascii code of the ch variable is : %d”, ch);
return 0;
}
Output
Output
Enter a character : Y
The ascii code of the ch variable is : 89