Search⌘ K

Challenge: Calculate the Average of Any Number of Integers

Explore how to implement the getAverage function that takes a variable number of integers and calculates their average. This lesson helps you understand handling variable argument lists in C for flexible function calls, enhancing your programming skills with advanced function techniques.

Problem statement

In this challenge, you have to implement the getAverage function.

int getAverage( int count, ...... );
...