Quote:
Originally posted by Mike Betts
Both codes will work...
Raven_Writer's code requires two passed parameters at invocation... argc (an integer) and argv(a pointer to an array of characters (also known as a string)). However, neither is used by the function "main".
monsieurcoffee's code is more traditional and correct as a stand alone program. However, he needs to indent his code so that it is more readable... Without indenting, any non-trivial code is very hard to maintain....
|
Not to be nit-picky about this, but if you compiled monsieur's code, it wouldn't work because 1, main is not actually declared, and 2 main doesn't return a value (but that's only if you declare main to be an integer, and not void).