Home » C++ Programming » Preprocessor » Question
  1. What is the output of this program?
    #include 
    using namespace std;
    #define Minimum(n,m) (((n)<(m)) ? n : m)
    int main ()
    {
    float f1, f2;
    f1 = 211.25;
    f2 = 211.025;
    cout <<"The minimum is " << Minimum(f1, f2) << endl;
    return 0;
    }
    1. 211.025
    2. 211.25
    3. Compilation Error
    4. Runtime Error
    5. None of these
Correct Option: A

In this program, we are getting the minimum number using conditional operator.



Your comments will be displayed only after manual approval.