fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int arr[5];
  6.  
  7. // Assume that base address of arr is 2000 and size of integer
  8. // is 32 bit
  9. arr++;
  10. printf("%u", arr);
  11.  
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:9:5: error: lvalue required as increment operand
  arr++;
     ^~
prog.c:10:11: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘int *’ [-Wformat=]
  printf("%u", arr);
          ~^   ~~~
          %ls
stdout
Standard output is empty