0

What if in the for loop like only condition is given?eg:for( ;x<20; )

11th Dec 2017, 4:58 PM
Sriram R
1 Odpowiedź
+ 1
Perfectly legal to even have none. However, in your case a while makes more sense. I've used for(i=0;;i++) with a break once a certain state occurred. Usually, I like multiple initializing multiple like: for(i=0,sum=0;i<20;i++)
11th Dec 2017, 5:04 PM
John Wells
John Wells - avatar