int x[]={1,2,3,4,5};
for(int i=0; i<5;i++)
System.out.println(x(i++]);
why is the
Output
1
3
5
can someone explain
Answers
Answered by
0
Answer:
Cause, you're incrementing 'i' 2 times in a single iteration of the for loop
Answered by
0
Answer:
Verified ✔️✅
MARK AS BRAINLIST ...YOU WILL ALSO RECEIVE 5 POINTS
Similar questions