Question: Which XXX and YYY best complete the code to return the minimum value in the array? int GetMinValue ( int arrayVals [ ] XXX )

Which XXX and YYY best complete the code to return the minimum value in the array?
int GetMinValue (int arrayVals[] XXX)
{
int i;
int minVal;
minVal = arrayVals[0];
for (i =0; YYY; ++i)
{
if (arrayVals[i]< minVal)
{
minVal = arrayVals[i];
}
}
return minVal;
}
a.
XXX: , int size
YYY: i < size(arrayVals)
b.
XXX: (nothing)
YYY: i <= arrayVals.arraySize
c.
XXX: , int numVals
YYY: i < numVals
d.
XXX: (nothing)
YYY: i <5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!