Write a Program to Find the ASCII Value of a Character

C++// C++ Program to find ASCII value of a character #include <iostream> using namespace std; int main() { char ch; ch = 'A'; cout << "The ASCII value of " << ch << " is " << int(ch) << endl; return 0; }

Output

The ASCII value of A is 65

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *