Basically,
While(1) is an infinite loop which will run till a break statement occurs.Similarly, while(2), while(3), while(255) etc will all give infinite loops only.
-Whereas, While(0) does the exact opposite of this. When while(0) is used, it means the conditions will always be false. Thus, as a result, the program will never get executed.
Read More →