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
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
Leave a Reply