0
guys How's the output is 4
int i, count =0; for(i=1;i<9;i++){ if(i%2==0) continue ; count++; } count<<count;
2 Antworten
+ 4
count gets incremented when i%2 != 0. So when i is 1,3,5,7 only then count++ is executed. Hence the output 4.
Continue statement will transfer the control back to the beginning of the loop when i%2 == 0. So at that time count++ is not executed.
+ 1
thanks man..