Share
Explore BrainMass

Data Structures + C++ STL

Give the value of v.size() after executing each of the following statements: (Be sure to include the code used to execute the statements. One program will be fine to execute all statements, no need to write multiple programs.)

vector<int> v(25);
v.push_back(-4);
v.resize(40);
m = v.back();
v.pop_back();

Solution Preview

1. vector v(25);
v.size() is 25
2. v.push_back(-4);
...

Solution Summary

c++ program that completes the assignment.

$2.19