Q: 18
What happens when you attempt to compile and run the following code? Choose all that apply.
#include
#include
using namespace std;
int main ()
{
vectorv1(10, 3);
v1.push_back(3);
cout<<v1.capacity()<<" "<< v1.size()<<endl;
return 0;
}
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.