Answer to Question #196336 in C++ for Simon

Question #196336

char letter = 'A';


Write a single line of code to convert and print the ASCII integer value of the variable letter.


Example Output

65


1
Expert's answer
2021-05-21T00:00:16-0400
#include <iostream>
using namespace std;
int main (){
	char letter = 'A';
	cout<<int(letter);
	system("pause");
	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog