Need explanation of push back

push back means inserting element from end .
in vector class we write push_back method in which if the currnt size ==maxsize double the size of array,otherwise arr[cs]=data and cs++

but when
for(int i=0;i<=5;i++){
v.push_back(i*i);
}
the output is 0 1 4 9 16 25
push back means inserting element from end .
so output should be like
25 16 9 4 1 0

so can u help me in understanding this

push_back just inserts elements in the order in which values are pushed. That’s why 0 comes first, then 1, 4 , 9 and so on.