main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}

Answer Posted / bala

56 93.

I will rewrite the above program for ur understand.

int x=20,y=35;
int x1,y1;
x1=y++ + x++; //this line y=35 and x=20 before assign the
value to x.
x=x1; // Value of x1=55, y=36 and x=21.
y1=++y + ++x;//this line y=37 and x=56 before assign the
value to y.
y=y1;// Value of x=56, y=37 and y1=93.
Finally x=56 and y=93

Is This Answer Correct ?    47 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why malloc is faster than calloc?

576


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1694


Differentiate between functions getch() and getche().

610


Is sizeof a keyword in c?

570


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

1777






Explain how do you determine whether to use a stream function or a low-level function?

616


pierrot's divisor program using c or c++ code

1719


What are the 5 types of inheritance in c ++?

570


What are the 5 elements of structure?

554


What are local variables c?

539


Why clrscr is used in c?

570


What are variables and it what way is it different from constants?

771


write a program in c language to print your bio-data on the screen by using functions.

6237


Explain what is the difference between a free-standing and a hosted environment?

624


Explain the properties of union. What is the size of a union variable

709