Initializing and Printing an Array
- The elements of an array can be initialized in the array declaration by following the declaration with an equal
sign, = , and a comma-separated list of initial values that is enclosed in braces.
- In such cases, the number of elements in the array is determined by the number of commas (+1) in the list.