as you have said that we can reserve size for vector so is there any limit about the size? How much max size can be reserved?
Maximum size that we can reserve for vector
@SiddeshPawar hi,actually reserve is lower limit for elements of vector means that function reserve helps user specify the minimum size of the vector,means vector should be of this size atleast ,but it can be of any size mtlb maximum koi limit nhi hai ,capacity har bar increase krti hai kyunki dynamic hota hai.Hope you get it
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.