...but a better way is to always use a constant to define the array size, for example: ...
Quote...but a better way is to always use a constant to define the array size, for example: ...Not to be too much of a nitpick, but I don't think that it is always "better". Sometimes you really do just want to be able to add add a string/value/object in an array initializer and let the computer figure out how many of them there really are. sizeof is annoying but you only have to get it right once.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16