Answers for "function to find ascii value of a in c++"

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 "function to find ascii value of a in c++"

Browse Popular Code Answers by Language