2 ms·
For example, rand() % 10 consumes slightly more memory (eight bytes more, to be precise) than rand() % 8. I'm assuming this is because the latter takes fewe
by kristianp 12y ago
For example, rand() % 10 consumes slightly more memory (eight bytes more, to be precise)
than rand() % 8.
I'm assuming this is because the latter takes fewer instructions to perform?