Programming Code Center(PCC)
[CPP]

(PCC)::[How-to-write-CPP-Program-to-Find-ASCII-Value-of-a-Character]::[cpp]

File Name : ASCII_Value_of_Character.cpp

//Example: Print ASCII Value in C++
#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;
}

Output :

ASCII_Value_of_Character.jpg