C++ Program to Print ASCII Value
#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

#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; }
We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.