This seems to have slipped my mind. :confused:
Pointers to constants are written as
right?Code:const int* foo;
But I have forgotten how to write constant pointers.
Printable View
This seems to have slipped my mind. :confused:
Pointers to constants are written as
right?Code:const int* foo;
But I have forgotten how to write constant pointers.
> const int* foo;
Read it backwards ( more or less ;) )
foo is pointer int const.
A const pointer would be
Code:int * const foo;