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 2 15
ReplyDelete2,1,15
ReplyDelete3,2,15
ReplyDelete