Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualkuramayoko10

Posted 18 November 2012 - 08:46 AM

What if I make this:

if(63 & 1)
{
	...
}

When will the if-loop start?
Is the condition everytime true, and is it possible to be false with an other number?


Looks like this question is more related with how the if-statement work.

The if-statement divides the flow of your program in 2 branches:
- Branch1 will be activated only if the value inside the if-statement evaluates to zero. This branch ignores the contents of the if-statement and starts immediately after its end or inside an else-statement associated with this if.
- Branch2 will be activated when the first one didn't. So, for every value different than zero, the if-statement will be executed.

#1kuramayoko10

Posted 18 November 2012 - 08:44 AM

What if I make this:

if(63 & 1)
{
	...
}

When will the if-loop start?
Is the condition everytime true, and is it possible to be false with an other number?


Looks like this question is more related with how the if-statement work.

The if-statement divides the flow of your program in 2 branches:
- Branch1 will be activated only if the value inside the if-statement evaluates to zero. This branch ignores the contents of the if-statement and starts immediately after its end.
- Branch2 will be activated when the first one didn't. So, for every value different than zero, the if-statement will be executed.

PARTNERS