Q:

When you use an initializer_list in a range for would you ever use a reference as the loop control variable? If so, why? If not, why not

0

When you use an initializer_list in a range for would you ever use a reference as the loop control variable? If so, why? If not, why not? 

All Answers

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

Yes, I would use a reference as the loop control variable. So that we don't need to copy the value from the `initializer_list`.

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