Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I like C but not its syntax

Name: Anonymous 2014-12-02 12:11

Why hasn't anyone made C that doesn't look like dogshit?

Name: Anonymous 2016-06-08 19:52

>>23
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.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List