fbpx
  • ASCII stands for ” American Standard Code for Information Interchange “. Below is the ASCII character table, including descriptions of the first 32 characters.
  • Each character or a special character is represented by some ASCII code, and each ascii code occupies 7 bits in memory.
  • The ascii value represents the character variable in numbers, and each character variable is assigned with some number range from 0 to 127. For example, the ascii value of ‘A’ is 65.

// C program to print ASCII Code of Character
#include <stdio.h>
int main()
{
  char c = ‘A’;

// %d displays the integer value of a character
// %c displays the actual character

printf(“The ASCII value of %c is %d“, c, c);

return 0;
}

Leave a Reply

×