do;while(true); is this loop is valid or nor | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

do;while(true); is this loop is valid or nor

2nd Jul 2016, 8:56 AM
sudha Peddireddy
sudha Peddireddy - avatar
3 Answers
+ 2
This loop is valid. Only problem is that there will be an infinite loop.
3rd Jul 2016, 6:33 AM
Midhun Mathew
0
valid but we use only depends on Boolean condition
18th Jul 2016, 5:58 AM
Amit
Amit - avatar
- 2
it's valid, and as a infinite loop, it works the same as while(true){expression;}
3rd Jul 2016, 12:41 AM
lastbullet