2 ms·
size is a const int that holds a positive value so you won't ever have INT_MAX < size.
by VodkaInferno 11y ago
size is a const int that holds a positive value so you won't ever have INT_MAX < size.
- nly 11y agoYes, and the compiler knows that as well. GCC even merges the two versions because they're equivalent[0] My point is, if size is dynamic, this is a dangerous optimisation. [0] http://goo.gl/4Ev8as http://goo.gl/4Ev8as