RTTS interview question

(C/C++) What is the difference between a while loop and a do while loop?

Interview Answer

Anonymous

30 Mar 2010

A while loop runs only if the specified condition is true. A do while loop runs at least once irrespective of the truth of the specified condition.