Hi,
Actually, return statements are alloud in functions that return void.
The only different is you don't return an actual value. The way you do
this is like this.
void main ()
{
return;
}
Since I didn't pass a value or variable to the return statement it
defaults to void.About the only time you want to do this is when your
function needs to exit early and without continuing with the rest of
the function.
HTH
On 3/24/10, Oriol Gómez <[email protected]> wrote:
> I'm going to try to answer your questions:
> 1. Void fucntions are functions that don't return anythin gI.e: No
> return statements allowed.
> 2. "3+5" in between quotes is going to be printed as such.
> Example:
> if you say alert("3+5=8"); it's going to print exactly that. if you
> said something like.
> alert("hey "+3+5);
> that would print 8 because you're putting it outside a string.
>
> hth
---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].