Horje
min element in stl c++ Code Example
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;
}




Cpp

Related
how to get an element in a list c++ Code Example how to get an element in a list c++ Code Example
how to find size of int array in c++ Code Example how to find size of int array in c++ Code Example
c++ random number generator uniform distribution Code Example c++ random number generator uniform distribution Code Example
c++ remove text file Code Example c++ remove text file Code Example
how to get size of 2d vector in c++ Code Example how to get size of 2d vector in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8