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
What are the __date__ and __time__ preprocessor commands?
what are # pragma staments?
Describe the header file and its usage in c programming?
How do I round numbers?
What is #include cctype?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What are all different types of pointers in c?
Difference between goto, long jmp() and setjmp()?
What is structure packing in c?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
What are local static variables?
Explain what is wrong with this program statement? Void = 10;
Write the test cases for checking a variable having value in range -10.0 to +10.0?
write a c program for swapping two strings using pointer