[A83] Re: C(++) programming


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

[A83] Re: C(++) programming




At 04:47 PM 9/17/2001 +0000, you wrote:

>Somebody in to C(++) programming??
>What's the difference between "int main()" and only "main()"??
>And what is "return0;" for? Something like returning to the OS like
>ret on the TI-83(+) (SE)??
>
>Could sombody give me a good address where I can find some good C (++)
>tutorials??

int main() defines the return type of main().  THe thing is, main() has to 
be type int.  the return 0; means that if you call main(), you get 0 as a 
result (a=main(), a will be 0).  You can use this to return stuff to batch 
files, I think.  Its like END SUB in basic.






Follow-Ups: References: