In this example, We will learn how to find ASCII value of a character.
ASCC stands for American Standard Code for Information Inter-exchange. This is the standard set that is assigned to characters and numbers that is understood by computer.
In this example, We will find out the ASCII value using the C++ programming language.
using namespace std;
cout << "Enter a character: ";
cin >> c;
cout << "ASCII Value of " << c << " is " << int(c);
The output of above program is
Enter a character: A
ASCII Value of A is 97
We can simply find ASCII value of any character by printing the integer value of any character.
Get the latest tutorials, examples and projects updates.
We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.
Disable Ad Block
Want Same System