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
Why do we use stdio h and conio h?
Explain about the functions strcat() and strcmp()?
What is difference between union All statement and Union?
Why isnt any of this standardized in c?
Explain the difference between ++u and u++?
What is the difference between class and object in c?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
Write a code to generate divisors of an integer?
How many keywords (reserve words) are in c?
how do you programme Carrier Sense Multiple Access
What is the acronym for ansi?
Give me the code of in-order recursive and non-recursive.
What are the features of c language?
What is 02d in c?
What is the best way to comment out a section of code that contains comments?