3 ms·
Vice versa. Const pointer: int *const p; Pointer to const value: const int *p int const *p >const is read as "the thing to the right of me is co
by wruza 10y ago
Vice versa. Const pointer:
int *const p;
Pointer to const value:
const int *p
int const *p
>const is read as "the thing to the right of me is const"
const is one of storage classes and is read at its order, not just "to the right".
- cyphar 10y agoWow. I literally was staring at my test case when I wrote it and I _still_ got it wrong. I think I need to get some more sleep...