fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void func(int i){
  6. char c= 's';
  7. cout << "i = " << i << endl << (int)c << endl;
  8. c += i;
  9. cout << (int)c << endl << "===========" << endl;
  10. }
  11.  
  12. int main()
  13. {
  14. func(12);
  15. func(13);
  16. func(14);
  17. return 0;
  18. }
Success #stdin #stdout 0s 5552KB
stdin
Standard input is empty
stdout
i = 12
115
127
===========
i = 13
115
-128
===========
i = 14
115
-127
===========