Q:

we can even more easily write this loop using the library begin and end functions (§ 3.5.3, p. 118)

0

we can even more easily write this loop using the library begin and end functions (§ 3.5.3, p. 118).

All Answers

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

// p points to the first array in ia
for (auto p = begin(ia); p != end(ia); ++p) {
// q points to the first element in an inner array
for (auto q = begin(*p); q != end(*p); ++q)
cout << *q << ' '; // prints the int value to which q
points
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