C: modifying const data in an array using pointer -
this question has answer here:
- deep analysis of const qualifier in c 9 answers
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
Post a Comment