Name: Anonymous 2014-12-02 12:11
Why hasn't anyone made C that doesn't look like dogshit?
Why does the return type come before the function name?To match the variable declaration syntax.
int x;
means "this is a variable that stores a variable of type int". int factorial() { ... }
means "this is a function that generates a variable of type int". If you just think of functions as a dynamic counterpart to variables, it makes sense.