+ 5
What will be do if the updation of loop is not given & condition is true
4 Respostas
+ 10
like this?
for(;true;)
??
Infinite loop unless condition becomes false. Might as well use a while loop at this point.
+ 4
the loop becomes infinite
+ 4
he wants the q and the a. lol
0
Instead of for(x=0;x<1;x++){do that;} you will have if(true){do this;} for a valid code. If you will do for(;x=0;){do this} you will have infinite loop.