Page 1 of 1

Which is better in terms of performance for iterating an array?

Posted: Wed Jul 13, 2022 7:50 pm
by answerhappygod
a) for(int i=0; i<100; i++)
b) for(int i=99; i>=0; i–)
c) for(int i=100; i<0; i++)
d) for(int i=99; i>0; i++)