Computer Science, asked by premrai25, 5 months ago

which loop is faster in c programming for , whipe or do whipe ?​

Answers

Answered by Ananyaanu22
0

Answer:

Some situation, we can use while loop or do-while loop interchangeably. One of my friend told me that such situation we should use do-while loop. Because it is faster than while.

Hope it helps you:)

Answered by letmeanswer12
2

"Do-While loop is the fastest loop in C programming".

Explanation :

From the given three loops for, while, do-while. Do-while is the fastest among others. The main reason is that in the do-while loop the is first executed and then the condition is checked.

But in both for loop and while loop has a conditional part at the beginning of the loop and after the condition is checked it enters into the loop and starts execution.

Similar questions