C++ Program to Find ASCII Value of a Character

#include <iostream>
using namespace std;
int main()
{
    char c = 'A';
    cout << "The ASCII value of " << c << " is " << int(c);
    return 0;
}

OUTPUT:

The ASCII value of A is 65

Leave a Comment