Q:

As in the case of string or vector, it is best to use a range for when we want to traverse the entire array. For example, we can print the resulting scores as follows

0

As in the case of string or vector, it is best to use a range for when we want to traverse the entire array. For example, we can print the resulting scores as follows.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

for (auto i : scores) // for each counter in scores
cout << i << " "; // print the value of that counter
cout << endl;

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now