search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
128 views
asked Guru 24.6k points 29 52 81

1 Answer

0 votes
In a do..while loop, the statements are executed without testing the condition , the first time. From the second time only the condition is observed. This means that the programmer does not have control right from the beginning of its execution. In a while loop, the condition is tested first and then only the statements are executed. This means it provides better control right from the beginning. Hence, while loop is move efficient than do.. while loop.
answered Guru 39.1k points 10 21 33

Related questions

0 votes
1 answer 39 views
0 votes
1 answer 429 views
429 views
which loop is better in C and C++, for loop or while loop or do while?
asked anonymous
0 votes
1 answer 122 views
122 views
asked sara Guru 24.6k points 29 52 81
0 votes
1 answer 215 views
...