Given that vec holds 25 elements, what does vec.resize(100) do? What if we next wrote vec.resize(10)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:9| Question number:29
All Answers
total answers (1)
`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`
.