0
What if in the for loop like only condition is given?eg:for( ;x<20; )
2 Answers
+ 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++)