In the C programming language, I can use printf to display a character and its decimal equivalent with code like this
char c='e'; printf( "decimal value: %d char value: %c\n",c,c); How can I do the same in C++ using cout? For example, the following code displays the character, but how would I get cout to print the decimal value?
char c='e'; cout << c;
Clanguage tag?