reverse function and back function in vectors code example Example: how to reverse a vector //vector<int> A; reverse(A.begin(),A.end());