Thursday, July 9, 2009

What do I have to do to show a character with its number from the ASCII code in a printf in C++?

char c ; // previously assigned





printf( "Character = %c, ASCII = %d\n", c, (unsigned int) c ) ;


No comments:

Post a Comment