Ask a Question

what is the differnce between while (0) and while (1) with a suitable example


Sumit

on 2014-05-09 09:30:00  

In while(0) the loop statements will not execute whereas in while(1) the the program will execute the statements inside the while loop. For any non-zero value "while(non-zero)" the condition will be true and the while loop statements will be executed.