+ 1

would someone please explain that can a for loop have two initializers,two conditions,and two increments or more than that

for(int i=0,j=0;a<10,b>10;i++,j++){}

13th Jul 2016, 5:12 PM
Omkar Nate
Omkar Nate - avatar
3 Respuestas
+ 3
Yes, you can have more than one initializer
13th Jul 2016, 5:17 PM
Bhanu
Bhanu - avatar
0
just for for loops or for otheors too
13th Jul 2016, 5:19 PM
Omkar Nate
Omkar Nate - avatar
0
can it be used only in for loop conditions. or in any other condition loops.. if so can u please mention there names.. thank you
14th Jul 2016, 4:39 AM
Girish Gopi
Girish Gopi - avatar