c++ - const pointer to const pointer to const data -
this question has answer here:
i got lot of const here. need know ones needed.
i need use pointer pointer pointer const , data pointed const. following make sense?
const int a=5; const int* const pi=&a; const int* const * const ppi=π // 3 const here? correct?
well compiles without warning, , make sense me, ppi const *ppi const , **ppi const
i need use ppi , want const possible, programming micro controller , want data go flash. know there are ways force data go flash i'd prefer linker automatically.
yes, ok, since want const-ness possible. however, going affect future use of these data. not sure if make linker put data in flash memory, read question: arm c++ - how put const members in flash memory?.
Comments
Post a Comment