Does C copy the element every time you access an array?

Viewed 645

C can't return references unlike C++. Does that mean if you access A[i] it will copy the element in evaluating the expression?

For example if A is an array of 10 ints, does A[5]+=1; only increment the temporary copy built when evaluating A[5], unlike C++'s vector which will increment the actual sixth element itself?

5 Answers
Related