Which of the following array declarations would enable you to store the high temperature for each day

Question:

Which of the following array declarations would enable you to store the high temperature for each day of one full week?

a. int temp1, temp2, temp3, temp4, temp5, temp6, temp7;

b. int temp [7] = new int[7];

c. temp int [ ] = new temp[7];

d. int [ ] temp = new int[7];

e. int [ ] temp = new temp[8];

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: