U
Q. What is the output of this program?
#include #include using namespace std; float avg( int Count, ... ) { va_list num; va_start(num, Count); int Sum = 0; for (int i = 0; i < Count; ++i ) Sum += va_arg(num, int); va_end(num); return (Sum/Count); } int main() { float AVG = avg(5, 0, 1, 2, 3, 4); cout << "Average of first 5 whole numbers : " << AVG; 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. Which constructor function is designed to copy objects of the same class type?
Q. By default, all the files are opened in ___________mode.
Q. What is the output of this program?
Q. Which of the following is used to handle dynamic memory allocation in C++?
Q. How many times mcqbuddy.com is printed?
Q. Additive, Multiplicative, shift, Bitwise logical and assignment operators is ____ operator.
Q. Which of the following is not a type of inheritance?
Q. C++ programming language follow______ programming approach:
Discusssion
Login to discuss.