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
![C++ Program to Print ASCII Value](https://techstudys.com/wp-content/uploads/2021/07/11-4.png)
#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; }