fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. char c;
  6. cout << "F: ";
  7. cin >> c;
  8. cout << "ASCII Value of " << c << " is " << int(c);
  9. return 0;
  10. }
Success #stdin #stdout 0s 4468KB
stdin
Standard input is empty
stdout
F: ASCII Value of  is 0