Q:

Why did we declare entry and nums as const auto &

0

Why did we declare entry and nums as const auto &?

All Answers

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

By using reference, we avoid copy every object in vectors. By using `const`, we avoid accidentally changing the values of elements in vectors.

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