Integer Arrays (continued)
Array with twelve in elements:
Assign a number to the first element in the array:
Use array variable in an expression as if it were an individual variable:
- val = 2*daysPerMonth[0]; /*assigns 62 to val*/
- printf(“1st element ==%d\n”, daysPerMonth[0]);
See calendar program (days in a given month)