differentiate between do while loop and do loop while
Answers
Answered by
5
The difference is in when the condition gets evaluated. In a do..while loop, the condition is not evaluated until the end of each loop. That means that a do..while loop will always run at least once. ... In your example wdlen may assume any garbage value which is > 2 so while loop will never get executed.
Similar questions