if (a == b); cout << "yes";will always output "yes'.
main = 25;
while (expression); body;This usually causes an infinite loop.
while (someVar = 5) // wrong! { body ; }is an infinite loop. The assignment in the condition evaluates to 5, which is not zero, so the computer interprets it as True.