Multiple Choice
Consider the following declarations of a function that receives an array of integers and finds the element with the maximum value:
(i) findMax(int *vals, int numEls)
(ii) findMax(int vals[], int numEls)
The address in vals may be modified ____.
A) only if the function is declared as in (i)
B) only if the function is declared as in (ii)
C) if either (i) or (ii) is used
D) in neither case because an array variable cannot be modified (it is a pointer constant)
Correct Answer:

Verified
Correct Answer:
Verified
Q13: The header line _ declares calc to
Q14: When an array is passed to a
Q15: Attempting to assign the address of an
Q16: When working with pointers and offsets, the
Q17: A pointer constant is equivalent to a
Q19: Addresses cannot be incremented or decremented using
Q20: When initializing pointers you must be careful
Q21: Pointers _ be initialized when they are
Q22: Access to an array using a subscript
Q23: You can replace lines 5 and 6