Find the Ascii Value of the Character in c++

 ASCII stands for American Standard Coding Information of Interchange. 

It is used for the ASCII code of the character into an integer.

For Examples

'A' = 65

's'=114

ASCII table download for reference 

program 

#include <iostream>
using namespace std;

int main()
{
    char ch;
    cout << "Enter the any character" << endl;
    cin >> ch;
    cout << "The ASCII code of this character " << ch << " of " << int(ch) << endl;
    return 0;
}

Post a Comment

0 Comments