C: modifying const data in an array using pointer -


this question has answer here:

i have const array in global scope this:

const long array_test[5] = {1, 2, 3, 4, 5};

how modify elements of above array @ runtime using pointer?

in no way. can't modify const objects.


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -