Quote:
Originally Posted by Spunky
Why do people sometimes call sizeof() when they already know the size? Completely unnecessary.
Otherwise, nice optimization. And why not create them in the loop? They're local to the loop and it looks nicer. Does the same exact thing and they're freed when the loop ends.
|
This allows changes in array sizes without messing up code. Since it's a compiler function, it won't cause any real code difference, but may help maintenance, specially for global vars used in several places in the code.
__________________