CJCoding With Joseph

ASCII Code of a Character

A char letter = 'A' is given. Print its numeric ASCII code:

65

Cast the char to an int so the number prints instead of the letter.

Expected Output:

65
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cout, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.