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. What will happen when we use void in argument passing?
Q. Which of the following operator can be overloaded through friend function?
Q. What is the output of this program?
Q. What happens if the base and derived class contains definition of a function with same prototype?
Q. What is the Difference between struct and class in terms of Access Modifier?
Q. Which of the following best defines the syntax for template function?
Q. Which of the following is an abstract data type?
Q. The function contain in the ios class to fill characters in the blank space
Discusssion
Login to discuss.