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
Why malloc is faster than calloc?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
Differentiate between functions getch() and getche().
Is sizeof a keyword in c?
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.
Explain how do you determine whether to use a stream function or a low-level function?
pierrot's divisor program using c or c++ code
What are the 5 types of inheritance in c ++?
What are the 5 elements of structure?
What are local variables c?
Why clrscr is used in c?
What are variables and it what way is it different from constants?
write a program in c language to print your bio-data on the screen by using functions.
Explain what is the difference between a free-standing and a hosted environment?
Explain the properties of union. What is the size of a union variable