Q:

The right way to write this loop is to use push_back

0

The right way to write this loop is to use push_back.

All Answers

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

for (decltype(ivec.size()) ix = 0; ix != 10; ++ix)
ivec.push_back(ix); // ok: adds a new element with value ix

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