Solved

Assume That the Array Named Items Contains the Integer Values

Question 10

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents