9.8k views
3 votes
Which of the following is TRUE about this statement?

A. sum += *array++; This statement is illegal in C++.
B. This statement will cause a compiler error.
C. This statement assigns the dereferenced pointer's value,
D. then increments the pointer's address.
E. This statement increments the dereferenced pointer's value by one,
F. then assign that value. None of these

User Long Smith
by
4.8k points

1 Answer

7 votes

E. This statement increments (++) the dereferenced pointer's value (array) by one then "assign" that value.

User Furr
by
5.4k points