1) Write the definition of a function named averager that receives a double parameter and return-- as a double -- the average value that it has been passed so far. So, if you make these calls to average, averager(5.0), averager(15.0), averager(4,3), the values returned will be (respectively): 5.0, 10.0, 8.1.
2) Write the definition of a function named newbie that receives no parameters and returns 1 the first time it is invoked (when it is a "newbie"), and that returns 0 every time that it is invoked after that.
You actually have 2 problems in the code you pasted. Both are in line 3.
First of all, you never declared the type of c, just that it is static. Years ago, before C was standardized everything that was declared was an int unless stated otherwise. Now you must declare the type of every variable. Some compilers may allow you to implicitly declare an int variable, but you should get into the habit of declaring all of your variables correctly.
The second issue is you never initialized c. If the memory location where c is created happens to have garbage in it, you will have weird results when you create averages.