Home / Programming MCQs / C++ MCQs / Question

U

Uday Singh • 7K 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

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.