ASCII Values in C

The full form of ASCII is the American Standard Code for information interchange. It is a character encoding scheme used for electronics communication. Each character or a special character is represented by some ASCII code, and each ascii code occupies 7 bits in memory.

In C programming language, a character variable does not contain a character value itself rather the ascii value of the character variable. 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.

In the above example, we assign 'A' to the character variable whose ascii value is 65, so 65 will be stored in the character variable rather than 'A'.

Source Code

//ASCII  American Standard Code For Information Interchange
128 total character which is used mostly during program.
Total number of Character in ASCII table is 256 (0 to 255).
0 to 31(total 32 character ) is called as ASCII control characters
include 'Escape', 'Backspace' and 'Delete'.
32 to 127 character is called as ASCII printable characters
128 to 255 is called as The extended ASCII codes
int main()
    int i;
    char a='b';
       printf("\n%d : %c",i,i);
    printf("%c : %c",a,a-32);
    return 0;
    48-57  -> 0-9
    65-90  -> A-Z
    97-122 -> a-z
    32     -> Space
To download raw file Click Here

List of Programs

Sample Programs

Switch Case in C

Conditional Operators in C

Goto Statement in C

While Loop Example Programs

Looping Statements in C

For Loop Example Programs

Array Examples in C

One Dimensional Array

Two Dimensional Array in C

String Example Programs in C

Functions Example Programs in C

Learn All in Tamil © Designed & Developed By Tutor Joes