#include<iostream> using namespace std; int main() { char c; cout << "Enter a character: "; cin >> c; cout << "ASCII Value of " << c << " is " << int(c); return 0; }
Result:
Enter a character: A
ASCII Value of A is 65
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Result:
Enter a character: A
ASCII Value of A is 65
need an explanation for this answer? contact us directly to get an explanation for this answer