return ascii value of a character

From msh the blind, 1 Month ago, written in C++, viewed 59 times.
URL http://codebin.org/view/79b818d9 Embed
Download Paste or View Raw
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.  char c;
  7.  cout << "Enter a character: ";
  8.  cin >> c;
  9.  cout << "ASCII Value of " << c << " is " << int(c);
  10.  return 0;
  11. }
  12. Output
  13.  

Reply to "return ascii value of a character"

Here you can reply to the paste above