4 1 1 Array Initialization
4 1 1 Array Initialization
1 Array Initialization
(Under older, pre-ANSI C compilers, you could not always supply initializers for ``local''
arrays inside functions; you could only initialize ``global'' arrays, those outside of any
function. Those compilers are now rare, so you shouldn't have to worry about this
distinction any more. We'll talk more about local and global variables later in this
chapter.)
If there are fewer initializers than elements in the array, the remaining elements are
automatically initialized to 0. For example,