Since the doubling of the vector is an expensive operation, so we use the reserve() function to initialise with a certain amount of space. But can we simply use to initialise the size when the vector is declared like:-
vectorv(1000);
instead of:-
vectorv;
v.reserve(1000);