#include
using namespace std;
int main(int argc, char* argv[])
{
int i1 = 0;
int i2 = 10;
const int *p = &i1;
int const *p2 =
No, the const keyword before the * means that the variable you are pointing to is a "const" variable and only it can not be modified.
Foo* const p = &bar;const Foo* const p = &barIt is perfectly fine to have a pointer of const int* foo be assigned to a pointer of const int* const bar just like it is fine to have an int's value assigned to a const int. Think of it in the same manner.