4 ms·
Unless I am remembering C wrong, this would work but the for (size_t i = length; i-- > 0 ; ) ... that several other people posted would not execute for ind
by jecel 4y ago
Unless I am remembering C wrong, this would work but the
for (size_t i = length; i-- > 0 ; ) ...
that several other people posted would not execute for index 0. Shouldn't it be this instead?
for (size_t i = length; --i > 0 ; ) ...