0
Pre increment
int i=0; int b=0; while(++i<5){ b++; } System.out.println(b); // because this is a repetition block with condition ++i, the result must be 4. Because this while blick is executed 4 times as long as ++i<5
3 Answers
0
Are you asking a question? If so please clarify.
If not please donât spam this section.
0
Yes. I am asking. Since I a have answered this question that the value stored in variable b after the while block executed must be 4. Buat It is a wrong answer. Zvi
0
Not sure why you say itâs wrong. I just tried it and I got 4