Which of the following array declarations would enable you to store the high and low
temperatures for each day of one full week?
a. int temp1Lo, temp2Lo, temp3Lo, temp4Lo, temp5Lo,
temp6Lo, temp7Lo, temp1Hi, temp2Hi, temp3Hi, temp4Hi,
temp5Hi, temp6Hi, temp7Hi;
b. int temp [7, 2] = new int [7, 2];
c. temp int [ , ] = new temp [7, 2];
d. int [ , ] temp = new temp [7, 2];
e. int [ , ] temp = new temp [8, 3];
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.