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
What is optimization in c?
What is string length in c?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
All technical questions
Why we not create function inside function.
What is wrong with this code?
Explain can you assign a different address to an array tag?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What is the difference between c and python?
what is stack , heap ,code segment,and data segment
What is the purpose of the preprocessor directive error?
How do I round numbers?
Is c easier than java?
What is a nested formula?
Where static variables are stored in c?