Q:

With the advent of the new standard, we can often avoid having to write the type of a pointer into an array by using auto or decltype (§ 2.5.2, p. 68)

0

With the advent of the new standard, we can often avoid having to write the type of a pointer into an array by using auto or decltype (§ 2.5.2, p. 68).

All Answers

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

// print the value of each element in ia, with each inner array on its own line
// p points to an array of four ints
for (auto p = ia; p != ia + 3; ++p) {
 // q points to the first element of an array of four ints; that is, q points to an
int
 for (auto q = *p; q != *p + 4; ++q) cout << *q << ' '; 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