我最近在这个论坛上提出了一个关于指针的问题。我被告知数组不是一个指针(因为它是常见的)并且很高兴知道。 但我现在不明白这件事。
int function(int tab[]){..}..// normal declaration of function. i will put an addres of an array to this function
void function( int *tab[]){..; //but what does it mean? That i will send a pointer on the first element of the tab to the function?
如果你能再次帮助我,我会很感激的!
答案 0 :(得分:0)
int tab[] == int * p // pointer to the first element of an array
int *tab[] == int ** p // pointer to the pointer to the first element of an array