Computer Science, asked by anonymous0956, 10 months ago

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 99235aditya
0

Answer:

Cause, you're incrementing 'i' 2 times in a single iteration of the for loop

Answered by AnshikaAnshi
0

Answer:

Verified ✔️✅

MARK AS BRAINLIST ...YOU WILL ALSO RECEIVE 5 POINTS

Similar questions