how do you define an alias for the type of a const pointer to const ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
typedefintconst *integer; // alias for int const*
int ival = 10;
integer const p = &ival; // do you know another way to do this trough type alias?
// or
// why in this way i don't declare a const pointer to const ?
typedefint *const integer; //alias for int *const
int ival = 10;
const integer const p = &ival; // same as the first example
// the const on the left side is ignored, why ?