|
|
|
|
|
by DannyBee
4479 days ago
|
|
The issue i raised is that you replaced a perfectly functioning loop with one that does not work properly (it does iterate the same number of times for all inputs) You said "I can change <= n to != n + 1".
You cannot.
for n == UNSIGNED_MAX, the former loop will iterate infinitely, the latter loop will never iterate. Both are well defined to occur.
You cannot change the loop behavior and say you have the same loop :) |
|