i am not able to understand that why we are using a[ i ] +n
hoe this is an end container. starting is row 0, end should be the n-1 or a[n-1]. please explain sir… so that i can understand the full concept of reverse STL.
End container in a reverse STL
@Abhishmu5
end() container does not include last element. It is always +1 the last element. therefore elements are till n-1 so end will be n.
for example we are having 4 elements. so, now the end container will not include the 4th element.end container always +1 for the last element so now it contain the all the 4 elements. right??
the end() would point to 4 because 0,1,2,3 would be 4 elements and 4th index would be the end.