could you plz tell me how the vector expands its size when we use pushback function to take input values as it is not clear to me from the video
About the pushback function in the vector
Hi @aslesha.j7
basically a new vector of double the capacity is made internally in the memory and then all members of previous members are updated in the new vector andthen the new number is added at the back of the vector
thank you I got my doubt cleared
1 Like