Home » C++ Programming » Data Types » Question
  1. What is the output of the following program?
    #include 
    using namespace std;

    int fun(int n, int m)
    {
    if (n > m)
    return n;
    else
    return m;
    }

    main()
    {
    int num0 = 6, num1 = 12;
    int res;
    bool x = true;
    bool y = fun(num0, num1);
    res =((num0 * num1) + (x + y));
    cout << res;
    }
    1. 6
    2. 12
    3. 74
    4. 50
    5. None of these
Correct Option: C

74



Your comments will be displayed only after manual approval.