while(0) is a looping condition that will always be false, i.e., the code inside the while loop will not be executed. while(1) is an infinite loop. It runs continuously until coming across a break statement mentioned explicitly.
Note: Any non-zero integer inside the braces of the while loop will give an infinite loop. For example, while(-22) and while(24) will both yield an infinite loop.