Question: If the scores array is defined like this: int scores [ ] = { 4 , 7 , 4 , 8 , 9 } ;

If the scores array is defined like this:
int scores []={4,7,4,8,9};
what will the following statement display?
cout scores[4];
a.4
b. the first four scores
c.8
d.7
e.9
 If the scores array is defined like this: int scores []={4,7,4,8,9};

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 Databases Questions!