fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. char ch;
  5. ch = 'k';
  6. ch = '5';
  7. int num = ch - '0';
  8.  
  9. char qw;
  10. int rq = 12;
  11.  
  12. qw = rq;
  13. // Результат: num = 5
  14.  
  15. printf("%d", (int)qw);
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
12