#include <iostream> using namespace std; int main() { char c = 'A'; cout << "The ASCII value of " << c << " is " << int(c); return 0; }
OUTPUT:–
The ASCII value of A is 65
#include <iostream> using namespace std; int main() { char c = 'A'; cout << "The ASCII value of " << c << " is " << int(c); return 0; }
OUTPUT:–
The ASCII value of A is 65