Flipping elements in pancake sorting

In c++ what function can we use to flip array elements from index 0 to some n index ??

hello @nidhigupta847
u can use reverse stl function .

read about it from here->