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. The break statement causes an exit
Q. Which of the following cannot be used with the keyword virtual?
Q. Which of the following correctly declares an array in C++?
Q. What will be the output of the following code? int x = 5; int y = 2; cout << x % y;
Q. Constructors __________ to allow different approaches of object construction.
Q. Identify the size of int datatype in C++.
Q. What is the output of the following C++ code?
Q. One-dimensional array having two-dimensional arrays is called
Discusssion
Login to discuss.