fork download
  1. #include <stdio.h>
  2. void main()
  3. {
  4. int i;
  5. char a[]='\0';
  6. if(printf("%s\n",a))
  7. printf(" GATE 2018\n");
  8. else
  9. printf("Forget GATE\n");
  10. }
Compilation error #stdin compilation error #stdout 0s 9432KB
stdin
Standard input is empty
compilation info
prog.c:2:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
 void main()
      ^~~~
prog.c: In function ‘main’:
prog.c:5:10: error: invalid initializer
 char a[]='\0';
          ^~~~
prog.c:4:5: warning: unused variable ‘i’ [-Wunused-variable]
 int i;
     ^
stdout
Standard output is empty