Is an array with 0 elements the same as an unallocated pointer?
Is int arr[0];
the same as int* arr;
?
Edit: What if I did something similar to this:
int x[0];
int* const arr = x;
I tried this code and it compiled. To my knowledge, both x and arr should be pointing to the same location in memory. What would be the difference in this case?