U

Uday Singh • 7.23K Points
Tutor III

Q. What is the output of this program?

Code:
#include 
    #include 
    using namespace std;
    int funcion(char ch,...);
    int main()
    {
        int p, q;
        p = funcion('B', 2, 3, 4);
        q = funcion('3', 2.0, 2, '3', 2.0f, 10);
        cout << p<<" " << q;
        return 0;
    }
    int funcion(char ch,...)
    {
        return ch;
    }
  • (A) 51 66
  • (B) 66 51
  • (C) Compilation Error
  • (D) Runtime Error
  • Correct Answer - Option(B)
  • Views: 211
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics