GCC gives me an \'Initialization from incompatible pointer type\' warning when I use this code (though the code works fine and does what it\'s supposed to do, which is print
These are the ways to point to a (beginning of) array (without a warning), both work:
int *q = arr; /* OR */ int *q = &arr[0];
This one is something in between, and will generate a warning:
int *q = &arr;