about the function parameters
int main(int argc,char* argv)
Is there something different between A and B?
Re: about the function parameters
On 2010-12-31, apporc <firstname.lastname@example.org> wrote:
> int main(argc,argv)
> int argc;
> char* argv;
> 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.
Copyright 2010, all wrongs reversed. Peter Seebach / email@example.com
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.
|All times are GMT. The time now is 10:52 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.