for (i=0 ; i<=10; i++) { .. .. } i=0; while(i<=10) { .. .. i++; }
In for and while loop, which one is better, performanc
Neither one. They are equivalent. You can think of the 'for' loop being a more compact way of writing the while-loop.