0

What happened when don't write any things between two parentheses?

5th Aug 2018, 9:59 AM
ameen
ameen - avatar
2 Respostas
+ 2
Your program enters to a infinite loop but syntax should be like that for ( ; ; ) { //codes } If you don't put semicolons there an error occurs. (I guess syntax error.) // Edit: In Other loops, like while, do while you have to put statement otherwise an error occurs. while ( //statement ) { } or do{ //codes while( //statement );
5th Aug 2018, 10:04 AM
Mustafa K.
Mustafa K. - avatar
+ 3
Nothing happens except the useless loop.
5th Aug 2018, 10:02 AM
José Ngoyi
José Ngoyi - avatar