+ 1
What is the output of this code?
// C++ program int main() { int i = 0; while ( 0 ) { printf( "%d\n", ++i ); if (i == 5) break; } return 0; }
3 Answers
+ 4
no output because while loop is False (0)
+ 4
i would guess nothing becaus 0 is equal to false in the while loop
+ 2
no output