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

Answer Posted / ruchi

Answer is 57 and 94
bcoz precedence of the ++ operator is more than + operator
so y++ and x++ will be evaluated first before addition so
y++ will be 36 and x++ will be 21 after that 36 + 21 = 57
similar reasoning for y = ++y + ++x

Is This Answer Correct ?    8 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use stdio h and conio h?

641


Explain about the functions strcat() and strcmp()?

601


What is difference between union All statement and Union?

630


Why isnt any of this standardized in c?

641


Explain the difference between ++u and u++?

642






What is the difference between class and object in c?

586


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

774


Write a code to generate divisors of an integer?

645


How many keywords (reserve words) are in c?

625


how do you programme Carrier Sense Multiple Access

1522


What is the acronym for ansi?

636


Give me the code of in-order recursive and non-recursive.

890


What are the features of c language?

625


What is 02d in c?

639


What is the best way to comment out a section of code that contains comments?

786