Solved

Suppose That Gamma Is an Array of 50 Components of Type

Question 29

Multiple Choice

Suppose that gamma is an array of 50 components of type int and j is an int variable.Which of the following for loops sets the index of gamma out of bounds?


A) for (j = 0; j <= 49; j++)
Cout << gamma[j] << " ";
B) for (j = 1; j < 50; j++)
Cout << gamma[j] << " ";
C) for (j = 0; j <= 50; j++)
Cout << gamma[j] << " ";
D) for (j = 0; j <= 48; j++)
Cout << gamma[j] << " ";

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions