Question: The following code will display 1 5 0 : { int a [ ] = { 1 0 , 2 0 , 3 0 ,

The following code will display 150 :
{
int a[]={10,20,30,40,50};
int ??=0;
for (int i=0;i4;i++)
sum +=a[-i];
cout sum;
Select one:
True
False
 The following code will display 150 : { int a[]={10,20,30,40,50}; int

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!