Converting a string to an int or a float

Keep in mind that all of pyro_65's comments refer to global arrays. Local arrays are initialized only to the extent that you provide initializers.

PaulS:
Keep in mind that all of pyro_65's comments refer to global arrays. Local arrays are initialized only to the extent that you provide initializers.

Nope. If you initialize any element in an array, whether it's a global or automatic variable, C/C++ will set all remaining elements to zero (or null in the case of pointers).