Qus : Which loop is guaranteed to execute at least one time, regardless of the condition?
Qusस्थिति की परवाह किए बिना, किस लूप को कम से कम एक बार निष्पादित करने की गारंटी है?
A. for loop B. while loop
C. do-while loop D. None of the above
Solution
C. do-while loop
Explanation
In a do-while loop, the condition is checked after executing the loop body. So, it will always run at least once.