I was curious as to how a pointer to a pointer variable could tell whether it is given just a regular pointer variable or a pointer to a pointer.
I tried this code below and got this error:
int x = 3;
int** y = &x;
Run Code Online (Sandbox Code Playgroud)
prog.cpp:7:12: error: invalid conversion from ‘int*’ to ‘int**’ [-fpermissive]
Is it correct to say &x is an int* type which is different from an int** type and so on?