In all of my C labs, my professor, without fail, uses return(0);
instead of (and correct me if I'm wrong) the preferred return 0;
. Shouldn't a C professor know good programming style?
I wonder this because my C textbook (Problem Solving and Program Design in C) also uses this format. It also puts a newline between int
and main()
, which I find a bit odd.
Could it simply be that older versions of C used this format and she (as well as the book) never adapted? Or is this just downright bad programming style? Or am I completely off base here?