static variables are always initialised to their default values and boolean's default is false..
now for your question :
if( boo1 & boo2 | boo2 & boo3 | boo2 ) will evaluate like :
___true & false | false & true | false which is false.. ( true & false is false, false & true is false, "or" ing false and false is false )
second if statement :
if( boo3 & boo2 | boo2 & boo1 | boo2 | boo1 )
__true & false | false & true | false | true which is true .. ( first two parts are false, but last "or" has a true value.. so since the whole thing is "or", it is true )
Shrinath M Aithal
Joined: May 20, 2009
man.... Henry is so quick..
@Henry : Are you sitting in front of the computer hitting refresh every 15 seconds waiting for someone to post something ? I am really amazed at the speeds you find an open question..