fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. #define GAY(x) #x
  5. #define STR(x) GAY(x)
  6.  
  7. #define XXX(x) (((STR(x)[0]-'0')*10)+(STR(x)[1]-'0'))
  8.  
  9. int main(int argc, char *argv[])
  10. {
  11. printf("%d\n%d\n%d\n", XXX(01), XXX(08), XXX(12));
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
1
8
12