Q:

Given that vec holds 25 elements, what does vec.resize(100) do? What if we next wrote vec.resize(10)

0

Given that vec holds 25 elements, what does vec.resize(100) do? What if we next wrote vec.resize(10)?

All Answers

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

`vec.resize(100)` will append 75 value initialized elements at the end of `vec`.

`vec.resize(10)` will remove 90 elements from the end of `vec`.

 

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