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++)
Which is better in terms of performance for iterating an array?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which is better in terms of performance for iterating an array?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!