Which is the de facto standard, the social rule if you will for function prototyping?
I'm using gcc 4.0.0. Either way, the compiler doesn't complain and the program gives the correct results.
If it's the same apparently, what are the pros and cons of each approach?
This one way
or this one?Code:#include <stdio.h> #include <math.h> float area_sq(float side); //-->include var side and rad float area_cir(float rad); [..]
Code:#include <stdio.h> #include <math.h> float area_sq(float); //-->just declared I'll be using a float var in the future float area_cir(float); [..]