Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ASCII representation of characters
#1
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.
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Using special characters in C Qomplainerz 0 256 07-26-2023, 07:47 AM
Last Post: Qomplainerz

Forum Jump:


Users browsing this thread: 1 Guest(s)