Home » C++ Programming » Functions » Question
  1. What is the output of this program?
    #include <iostream>
    #include <algorithm>
    using namespace std;
    int main ()
    {
    cout << min(200, 201) << ' ';
    cout << min('U','L') << '\n';
    return 0;
    }
    1. 201 U
    2. U 201
    3. L 200
    4. 200 L
    5. Compilation Error
Correct Option: D

In this program, We are finding the minimum value by using min method.



Your comments will be displayed only after manual approval.