Re: odd compiler behaviour?
On Sun, Mar 16, 2003 at 04:56:53PM +1100, Rob Weir wrote:
> On Fri, Mar 14, 2003 at 04:00:22PM +0000, Bruynooghe Floris wrote:
> > I can't see why the second program fails to compile, as far as I would expect these programs are identical.
> > Does anyone knows what goes wrong?
> > int main()
> An addition to what everyone else said, this really should be
> int main(int argc, char** argv)
> to truly satisfy the pedant within :)
Doesn't matter if you aren't using them. '()' in C means "unspecified
arguments", as opposed to "no arguments" which is '(void)'.
Colin Watson [email@example.com]