thanks for the advice, and spaceship

Jeffrey Traer Bernstein jeffyb@ccrma.Stanford.EDU
Wed, 14 May 2003 00:38:35 -0700


while is just a macro incorporating an if

so:

while ( condition )
{
here:
    someStuff();
}

is the same as

here:
if ( condition )
{
    someStuff();
    goto here;
}

Hiroko Terasawa wrote:

>Hi guys and gals,
>
>  
>
>>These operators as pre & post-ASSIGNMENT-incrments so if there is no 
>>assignment i.e. an explicit = then they're result is exaclty the same.
>>    
>>
>
>That's very clear! Thanks!!
>Anybody can explain which of *while and if* is faster?
>
>  
>