fork download
  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 << (int)c;
  10. return 0;
  11. }
Success #stdin #stdout 0s 4368KB
stdin
k
stdout
Enter a character: 107