Variable Argument Lists in C - Cprogramming.com
Perhaps you would like to have a function that will accept any number of values and then return the average. You don't know how many arguments will be passed in to the function. One way you could make the function would be to accept a pointer to an array.
www.cprogramming.com |