Are int* and int** different types? C++

csg*_*guy 0 c++ pointers

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?

Col*_*lin 5

An int *是指向整数的指针,而An 是指向整数int **的指针。