reverse an array using vectors code example Example: how to reverse a vector //vector<int> A; reverse(A.begin(),A.end());