ANSWERS: 4
  • WHILE(1) causes a permanent loop (a loop that executes for ever). A break statement will cause the loop to end. To see some sample code using this method, look at http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
  • that's because in C, 1 means true, 0 means false, so it would be while(true) other ways to do it while(1=1) while(2>1) while(3<>8) while(this_code_is_executing) (since it doesn't matter if it is not)
  • while(1) == While(!0) == While(42) == While(something), where ! is not. Logic is as follows: If(1 is not 0), repeat.
  • while(1) mean it is an infinite loop.we can stop it only through it a condition that use break stament.

Copyright 2017, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy