if(b=true) means => compiler not sure at the compile time whether the body of this if will execute or not!
if(true) means => compiler knows the body of if is gonna execute while running the program.
or in other words, the true literal is a compile time constant. The value returned by an assignment, is not a compile time constant, even though the variable is being assigned to a compile time constant.
Henry
Post by:autobot
Hang a left on main. Then read this tiny ad:
a bit of art, as a gift, that will fit in a stocking