Demo of calculating the average of an array of numbers. Since we don't know how many numbers a user will enter, we use dynamic memory allocation, since standard arrays don't work.
Part of the Introduction to C Programming video series from Rose-Hulman Institute of Technology. Find a sample schedule, more videos, sample code, and more at the series homepage: http://www.rose-hulman.edu/class/csse/IntroToC/