Which keyword or symbol is placed in a function prototype and definition to prevent the function from changing a passed array?
A. &
B. *
C. fixed
D. const
The answer is D. The keyword cost is used in a function prototype to prevent changing a passed array.
Comments
Leave a comment