U
Q. What is the output of this program?
#include #include using namespace std; int Addition(int number, ...) { int sum = 0; va_list args; va_start (args,number); for (int i = 0; i < number; i++) { int number = va_arg (args,int); sum += number; } va_end (args); return sum; } int main (void) { int Result = Addition(1, 10, 9, -1, 13, 23, -2, 9, 17); cout << "The result is " << Result; return 0; }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. In C++, a function contained within a class is called
Q. Which data type is used to represent the absence of parameters?
Q. Which version of C++ introduced keyword - constexpr?
Q. Which of the following types is not present in C but present in C++?
Q. In UML ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ is a collection of things tied together through relationships.
Q. Which of the following is not a valid C++ identifier?
Q. Which of the following is the correct way to allocate memory dynamically for an integer in C++?
Q. Which operator is required to be overloaded as member function only?
Discusssion
Login to discuss.