#include <stdio.h> int main(){ int arr[5]; // Assume that base address of arr is 2000 and size of integer // is 32 bit arr++; printf("%u", arr); return 0;}
Standard input is empty
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
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!