fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int i;
  6. scanf("%c",&i);
  7. printf ("%c",i);
  8. return 0;
  9. }
  10.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
5
compilation info
prog.c: In function 'main':
prog.c:6:11: error: format '%c' expects argument of type 'char *', but argument 2 has type 'int *' [-Werror=format=]
     scanf("%c",&i);
           ^
cc1: all warnings being treated as errors
stdout
Standard output is empty