The trouble is you think you have time. Your success depends on how you utilize your time.

Dry Run Practice Program # 3

What is the Output of the following program ?

#include<iostream>
using namespace std;
int main ()
{
int a[5]={5,1,15,20,25};
int x,y,z;
x=++a[1];
y=a[1]++;
z=a[x++];
cout<<x<<"  "<<y<<"  "<<z;
return 0;
}

For the Answer Of this Question with Explanation Click Here

3 comments: