GATE | GATE CS Mock 2018 | Set 2 | Question 35
What is output of following C – Code?
Attention reader! Don’t stop learning now. Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.
Learn all GATE CS concepts with Free Live Classes on our youtube channel.
Explanation: The function receives variable number of arguments as there are three dots after first argument. The firs argument is count of all arguments including first. The function mainly returns sum of all remaining arguments. See http://www.geeksforgeeks.org/how-to-count-variable-numbers-of-arguments-in-c for details.
Quiz of this Question