programming challenge (silly)

Rick Schubert rns at se-sd.sandiego.ncr.com
Tue Mar 21 06:06:04 AEST 1989


In article <LIMES.89Mar15203439 at ouroborous.wseng.sun.com> limes at wseng.sun.com (Greg Limes) writes:
>In article <4412 at ingr.com> crossgl at ingr.com (Gordon Cross) writes:

>   The example above fails to yield the correct answer if invoked
>   with arguments on the command line whereas the original program did...

>Perhaps it is time to ask, since c415-23 at alberta did not specify.
>	*** Can we assume no parameters? ***

Please note that the first argument to `main' may have the value 0 !
(That's the integer 0, not 0 factorial).

A value of 0 indicates that the program name is not available.  This
is allowed by the soon-to-be ANSI Standard.

-- Rick Schubert (rns at se-sd.sandiego.NCR.COM)



More information about the Comp.lang.c mailing list