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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

oracle - Changing start date for system jobs related to automatic statistics collections in 11g -