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
Q38: In performing _ on pointers, we must
Q39: Consider the declarations
Int nums[100];
Int *nPtr;
The statement _
Q40: Adding _ to a pointer causes the
Q41: Of the following expressions, _ is the
Q42: int *ptNum = &miles; is _.
A)always valid
B)never
Q44: If nums is a two-dimensional integer array,
Q45: If nums is a two-dimensional integer array,
Q46: A suitable equivalent to the function header
Q47: The header line _ declares calc to
Q48: You can replace lines 5 and 6
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents