Home / Programming MCQs / C++ MCQs / Question
U
Q. What is the output of this program?
#include #include using namespace std; void function(std::string message, ...); int main() { function("UdayMCQBuddy", 5, 7, 10, 8, 9); return 0; } void function(std::string message, ...) { va_list ptr; int number; va_start(ptr, message); number = va_arg(ptr, int); number = va_arg(ptr, int); cout << number; }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which of the following operator can be overloaded through friend function?
What is the length of array {1,3,4,2,4}
Which of the following is used for comments in C++?
If the derived class is struct, then default visibility mode is _______ .
Which of the following operators is called “Address operator”?
Where can the default parameter be placed by the user?
Discusssion
Login to discuss.