1.

Give two differences between while and do-while loop. 

Answer»

1. The while loop is called as pre-tested loop and do-while loop is called as post-tested loop.

2. The while loop test the condition in the beginning of the loop structure. Whereas, do-while test the condition at the end of the body of loop structure.



Discussion

No Comment Found

Related InterviewSolutions