count=1;
while (count=1)
{
}
It will never leave this loop for two reasons:
- Count starts off at 1, and you don't change it (however see below).
- In the loop, you keep resetting count to 1.
count=1;
while (count=1)
{
}
It will never leave this loop for two reasons: