min element in stl c++
#include <bits/stdc++.h>
using namespace std;
int main()
{
vector<int> v{ 9, 4, 7, 2, 5, 10, 11, 12, 1, 3, 6 };
int c = *min_element(v.begin(), v.end());
cout<<"Min Element of the vector is "<< c;
return 0;
}
min element in stl c++
#include <bits/stdc++.h>
using namespace std;
int main()
{
vector<int> v{ 9, 4, 7, 2, 5, 10, 11, 12, 1, 3, 6 };
int c = *min_element(v.begin(), v.end());
cout<<"Min Element of the vector is "<< c;
return 0;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us