[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] C programming, variable size array



On Fri, 12 Dec 2003 16:57:12 -0500, Hubert Chan wrote:

> <nitpick>
> 
>>>>>> "John" == John Smith <netman1@home.nl> writes:
> 
> John> #include <stdio.h>
> John> int main
> John> (
> John>    int  nNumberofArguments,
> 
> Your variable names are too long, which decreases readability.  Having
> such a long name does not convey any more information than a shorter
> name such as "numArgs" (or "numArguments").  Not to mention that
> Hungarian notation is ugly.
> 
> Also, since your program does not make use of the command line
> arguments, you might as well just omit the parameters to main.
> 
[snip]

Man, a code walkthrough on debian-user!  Cool!  And a reminder for me not
to post any of *my* code :>

-- 
....................paul

"Do the little things" ("Gwnewch y pethau bychain")

St. David (Dewi Sant) of Wales, last sermon, Sunday 27th February 589




Reply to: