Question: Consider the following array declaration int sales [ 5 ] = { 1 0 0 0 0 , 1 2 0 0 0 , 9

Consider the following array declaration
int sales[5]={10000,12000,900,500,20000};
The statement sales[4]= sales[4-2]; will replace the number _____
a.
500 with 498
b.
20000 with 900
c.
20000 with 19998
d.
500 with 12000

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!