fork(1) download
  1. main()
  2. {
  3. char arr[8]={11,22,33,44,55,66,77,88};
  4. (arr+2)[3]='44';
  5. int x=(arr+2)[3];
  6. printf(ā€œ%cā€,x);
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main()
 ^~~~
prog.c: In function ‘main’:
prog.c:4:12: warning: multi-character character constant [-Wmultichar]
 (arr+2)[3]='44';
            ^~~~
prog.c:4:12: warning: overflow in implicit constant conversion [-Woverflow]
prog.c:6:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 printf(“%c”,x);
 ^~~~~~
prog.c:6:1: warning: incompatible implicit declaration of built-in function ‘printf’
prog.c:6:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
prog.c:6:8: error: stray ‘\342’ in program
 printf(“%c”,x);
        ^
prog.c:6:9: error: stray ‘\200’ in program
 printf(“%c”,x);
         ^
prog.c:6:10: error: stray ‘\234’ in program
 printf(“%c”,x);
          ^
prog.c:6:11: error: expected expression before ‘%’ token
 printf(“%c”,x);
           ^
prog.c:6:13: error: stray ‘\342’ in program
 printf(“%c”,x);
             ^
prog.c:6:14: error: stray ‘\200’ in program
 printf(“%c”,x);
              ^
prog.c:6:15: error: stray ‘\235’ in program
 printf(“%c”,x);
               ^
prog.c:5:5: warning: unused variable ‘x’ [-Wunused-variable]
 int x=(arr+2)[3];
     ^
stdout
Standard output is empty