A
Q. Find output of below program.
Code:
int main()
{
int c1,c2;
int a = -8;
int b = 3;
c1 = --a + b;
c2 = a-- + b;
cout<<"c1="<<c1<<", "<<"c2="<<c2<<endl;
return 0;
}
{
int c1,c2;
int a = -8;
int b = 3;
c1 = --a + b;
c2 = a-- + b;
cout<<"c1="<<c1<<", "<<"c2="<<c2<<endl;
return 0;
}
- Correct Answer - Option(A)
- Views: 26
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.