fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char x = '10';
  5. putc(x);
  6. return 0;
  7. }
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:4:11: warning: multi-character character constant [-Wmultichar]
  char x = '10';
           ^
prog.c:4:11: warning: overflow in implicit constant conversion [-Woverflow]
prog.c:5:8: error: macro "putc" requires 2 arguments, but only 1 given
  putc(x);
        ^
prog.c:5:2: warning: statement with no effect [-Wunused-value]
  putc(x);
  ^
prog.c:4:7: warning: unused variable 'x' [-Wunused-variable]
  char x = '10';
       ^
stdout
Standard output is empty