I have a question about syntax of pointer to arrays. Well we know arrays are pointers themselves so why when we point to them with another pointer (which would be a pointer to pointer) we use this syntax:
Int array[10];
Int *pointer = array;
Instead of this syntax:
Int array[10];
Int **pointer = &array;
Although i know this would be correct using malloc but why not in the normal way, is it a compiler or syntax thing or i am wrong somewhere else??
Aucun commentaire:
Enregistrer un commentaire