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 non-leap year). You decide to declare a named constant for the subscript of each month: JANUARY =0, FEBRUARY =1, MARCH =2, 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!