Q:

WHAT IS THE DIFFERENCE BETWEEN WHILE AND DO-WHILE LOOPS IN C?

belongs to collection: C INTERVIEW QUESTIONS AND ANSWERS

0

WHAT IS THE DIFFERENCE BETWEEN WHILE AND DO-WHILE LOOPS IN C?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

While loop is executed only when given condition is true.

Whereas, do-while loop is executed for first time irrespective of the condition. After executing while loop for first time, then condition is checked.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C INTERVIEW QUESTIONS AND ANSWERS

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
WHAT IS THE DIFFERENCE BETWEEN SINGLE EQUAL “=... >>
<< WHAT ARE ALL LOOP CONTROL STATEMENTS IN C?...