sort vector c++ 1

sort vector c++

vector v;
sort(v.begin(),v.end());

Here is what the above code is Doing:
1. We are creating a vector of integers.
2. We are sorting the vector in ascending order.

Similar Posts