In context to memory allocation

i have a query about memory allocation at the time of creation of vector . It means if i intialize the vector with 3 elements it will automatically create a vector for 6 element .

No @vikash3303
It will create vector of size 3 only, do this :

vector<int > v(3);
cout<<v.size()<<endl<<v.capacity();