โ Back to Printing
Question 294
ASCII Code of a Character
ASCII Code of a Character
Achar letter = 'A'is given. Print its numeric ASCII code: 65 Cast the char to anintso 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.