Hi,
In my book about C I read that arrays (for example int array[100]) are really pointers. What confuses me then is that you cannot write:
int array1[100];
int array[100]
array1 = array2; // wrong
Shouldnt you be able to assign a pointer to a pointer?
You can write:
int *ptr;
ptr =array2;
Why isnt this the same as the above assignment? In both cases a pointer is assigned to another pointer (considering an array is a pointer).