C - Loops
What is the main difference between a
do-while loop and a while loop in C?do-while loop and a while loop in C?while loop checks the condition first, so it may not run the code block if the condition is false initially.do-while loopdo-while loop runs the code block once before checking the condition, ensuring at least one execution.do-while loop executes the code block at least once before checking the condition. -> Option C15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions