Hello,
I have the following program and I observe that the f function prints different values on its two calls. The correct result is the second one.
Can anyone explain me please, exactly what the & operator does?
Thank you
Code:#include <stdio.h> int m[5][5]; void f(int** v){ printf("*v=%p v=%p\n",*v,v); } int main(){ printf("m[4]=%p\n",m[4]); f(&m[4]); int*ptr = m[4]; f(&ptr); return 0; }