adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    #include <stdarg.h>
    using namespace std;
    int flue(char c,...);
    int main()
    {
        int x, y;
        x = flue('A', 1, 2, 3);
        y = flue('1', 1.0,1, '1', 1.0f, 1l);
        cout << x << y;
        return 0;
    }
    int flue(char c,...)
    {
        return c;
    }

a.

6549

b.

4965

c.

6646

d.

compile time error

Answer: (a).6549

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?