I dont get how arr+n is the last element of any array

wouldnt it be the address of the memory after the last element of the the array?

hello @vipulch
yeah u r right, it is address next to last elemnt of array

but sir said that we have to enter the end element in that place

also, if we use vector v.end() does it give the last element or the one after that?

next to last element.