<aside> <img src="/icons/home_green.svg" alt="/icons/home_green.svg" width="40px" />

Back to Home

</aside>

ASCII Table


https://jennychen9827sbu.github.io/CAD281/ascii.html

What is ASCII?

ASCII stands for American Standard Code for Information Interchange.

It is a character encoding standard that represents text characters (like letters, digits, and symbols) using integer values.

In C programming:


ASCII Examples in C

Example 1: Print ASCII value of a character

#include <stdio.h>

int main() {
    char ch = 'A';
    printf("ASCII value of %c is %d\n", ch, ch);
    return 0;
}

Output:

ASCII value of A is 65


Example 2: Convert lowercase to uppercase

#include <stdio.h>

int main() {
    char lower = 'b';
    char upper = lower - 32;
    printf("Uppercase of %c is %c\n", lower, upper);
    return 0;
}