105k views
2 votes
A program contains a seven-element array that holds the names of the days of the week. At the start of the program, you display the day names using a subscript named dayNum. You display the same array values again at the end of the program, where you as a subscript to the array.

a. must use dayNum
b. can use dayNum, but can also use another variable
c. must not use dayNum
d. must use a numeric constant instead of a variable

1 Answer

3 votes

Answer:

b. can use dayNum, but can also use another variable

Step-by-step explanation:

You can use another variable to display array elements, any variable holding array counter variable can handle that too.

User Clary
by
6.9k points