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

What are the __date__ and __time__ preprocessor commands?

575


what are # pragma staments?

1631


Describe the header file and its usage in c programming?

622


How do I round numbers?

602


What is #include cctype?

581






What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

734


What are all different types of pointers in c?

580


Difference between goto, long jmp() and setjmp()?

711


What is structure packing in c?

609


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

583


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

1645


What are local static variables?

620


Explain what is wrong with this program statement? Void = 10;

766


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1819


write a c program for swapping two strings using pointer

2095