fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char c = '5';
  5. printf("%d", (c - '0') + 1);
  6. }
  7.  
  8. //https://pt.stackoverflow.com/q/288094/101
Success #stdin #stdout 0s 5460KB
stdin
123
stdout
6