Explain the difference between while loop and do-while loop.

Explain the difference between while loop and do-while loop.Different ways of using for loop.

  • Sree
  • 02 अप्रैल
  • 4383 दृश्य
  • 1 उत्तर
Your Answer

A do while loop is a control flow statement that executes a block of code at least once, and then repeatedly executes the block, or not, depending on a given boolean condition at the end of the block.
But while is entry controlled…that means it enters the loop only when the test condition is true other wise it exits the loop.

0
c programming
मॉक परीक्षण अभ्यास के लिए
c programming