KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If I create a global array of const values, e.g. const int SOME_LIST[SOME_LIST_SIZE] = {2, 3, 5, 7, 11}; is it possible for SOME_LIST to be modified in any way? How can I write this such that SOME_LIST points to a const memory location, and is a const pointer itself (i.e. cannot be pointed somewhere else)?
Tags (comma-separated)
Save Edits
Cancel