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
Explain the use of 'auto' keyword in c programming?
What is function pointer c?
how to find binary of number?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
what is use of malloc and calloc?
Explain what are reserved words?
C program to find all possible outcomes of a dice?
What is derived datatype in c?
What is console in c language?
Can a void pointer point to a function?
What are the two types of functions in c?
What is calloc() function?
Explain heap and queue.
What does sizeof int return?
What is the use of c language in real life?