On 2010-12-31, apporc <> wrote:
> A:
> int main(argc,argv)
> int argc;
> char* argv[];
> {...}
> B:
> int main(int argc,char* argv[])
> {....}
> Is there something different between A and B?
Yes, the second is a function prototype. For these *particular* types,
they happen to have roughly the same effect, but for some other types
(e.g., float), they wouldn't.
Use the second form.
-s
--
Copyright 2010, all wrongs reversed. Peter Seebach /
usenet-
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.