Question: Suppose you are writing code that uses an array containing the number of days in each month ( in a non - leap year )
Suppose you are writing code that uses an array containing the number of days in each month in a nonleap year You decide to declare a named constant for the subscript of each month: JANUARY FEBRUARY MARCH etc. One advantage to using these named constants to access the array elements is that your statements become
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
