char letter = 'A';
Write a single line of code to convert and print the ASCII integer value of the variable letter.
Example Output
65
#include <iostream>
using namespace std;
int main (){
char letter = 'A';
cout<<int(letter);
system("pause");
return 0;
}
Comments
Leave a comment