I am learning C++. I thought i understood pointers.
But this below, is something i can't wrap my mind around. Not to mention i don't know even if it's right way to do it.
int *ip[5];
int arr[5] = {};
**ip = *arr;
This compiles. But ip[3] is not 0, as arr[3] is. I want to know two things: what is happening, and how can i do what i wanted.. make ip equal arr.
Array is already like a pointer. So int *p; int arr[3]={}; p=arr; p[1];//== 0..
Then int *p[3]; int arr[3]; //