i've continues test come around multi-level pointers, and got trouble too:
my question is why and where i need use const in allocation a pointer to constant, and why i don't need const in allocation of a constant pointer?Code:int main() { const int*** x; x = new const int**; *x = new const int*; **x = new int; // const pointer int*** const y = new int**; *y = new int*; **y = new int; return 0; }
thanks for reply.