Friday, November 22, 2013

Do...While not functioning as expected.



do
{
//your code here
}
while (i <= j & j <= 10);

Out of a good practice I think that it's better to use the logical-and operator (&&) that is a short-circuit one and not the bitwise-and (&) although it doesn't matter much here. :)



Regards,



Eyal Shilony


No comments:

Post a Comment