ASCII representation of characters - Printable Version +- QP School (https://qomplainerzschool.lima-city.de) +-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3) +--- Forum: C 18 Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=32) +--- Thread: ASCII representation of characters (/showthread.php?tid=5138) |
ASCII representation of characters - Qomplainerz - 07-26-2023 Example: char uppercase_A = 65; // ASCII value of 'A' char lowercase_a = 'a'; // ASCII value of 'a' Explanation: In C, char variables can hold numeric values that correspond to ASCII codes for characters. In this example, we assign the integer value 65 to uppercase_A. The ASCII code 65 corresponds to the character 'A'. We can also assign a character literal to lowercase_a. The ASCII code for lowercase 'a' is 97. |