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

Answer Posted / jaya prakash

57 94


{x=y++ + x++;}
equal to
{
x=y+x;//35+20
x++; //56
y++; //36
}


y=++y + ++x;
equal to
{
++y;//37
++x;//57
y=y+x;//37+57
}

So x=57
y=94

Is This Answer Correct ?    219 Yes 53 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept and use of type void.

631


what is reason of your company position's in india no. 1.

1778


What are the different types of errors?

647


Explain modulus operator. What are the restrictions of a modulus operator?

601


What is wrong with this declaration?

614






What does p mean in physics?

586


Explain how do you print only part of a string?

651


Can include files be nested?

629


How important is structure in life?

594


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1631


Why do we use namespace feature?

584


Is main an identifier in c?

606


What is an auto keyword in c?

644


What is the use of gets and puts?

605


What is stack in c?

616