Can you explain further how you concluded the answers 12 and 8, please prelude? What two items are you referring to?but if this questions refers to w after the calls to push_back then capacity will most likely be 12 and size will be 8 because the two added items may require the vector to resize itself to hold them.
I apologize for a similar question but i was still unsure of the whole problem. You have gone further in detail as to explain why and i appreciate that.
Thanks everybody and THANKS Prelude for the indepth lesson.