Solved

Assume That the Array Named Items Contains the Integer Values

Question 5

Multiple Choice

Assume that the array named items contains the integer values 0, 2, 4, 6 and 8. Which of the following set of statements uses the range-based for loop to display each value in items?


A) for (int i = 0; i <items.size() ; ++i) { cout <}
B) for (int item : items) { cout <}
C) for (int item : items) { cout <}
D) for (int item : items.size() ) { cout <}

Correct Answer:

verifed

Verified

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

Related Questions