ASCII Values

ASCII Values

How do I change an ASCII value to a letter in C++?

You can directly assign the ASCII vlaues to a variables of type char.The decimal value is automatically converted to char, without anyspecial casting operations. For example, the ASCII value of the ‘A’ is65. You assign this value to a char variable like this:

  char c = 65;  cout 

Editor’s note: this answer has been updated from the original version.


Share the Post: