Answers for "how to calculate ascii value in cpp"

C++
1

how to find 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;
}
Posted by: Guest on August-17-2021

Code answers related to "how to calculate ascii value in cpp"

Browse Popular Code Answers by Language