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
πŸ’¬ Discuss
βœ… Correct Answer: (B) 66 51

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
481
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Uday Singh
Publisher
πŸ“ˆ
89%
Success Rate