A question about Arrays and Pointers
Hey,
I am wondering what this is:
- Is it a array of int* or
- is it a pointer to an array of ints?
I am asking because you can actually deepcopy multidimensional arrays using memcopy, while you cannot using type**.
After some research I experienced that an multidimensional array is stored as a coherent "object". There are no pointers to adresses stored.
So I am wondering what exactly happens when I pass an array as an type**.
Does C create pointers to actualy locations, because if not: How does the computer know the size of the stored arrays?
Thank you!