main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Answer Posted / manju
while calculating the x value,x & y values are post
incremented.So the values of x & y are added and then
incremented i.e. x=56,y=36
while calculating the y value,x & y values are
preincremtned,so x & y values are incremented and then
added i.e. x=57,y=37.
so x=57
y=57+37=94.
| Is This Answer Correct ? | 58 Yes | 18 No |
Post New Answer View All Answers
Explain how can I right-justify a string?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What is the data segment that is followed by c?
How pointer is different from array?
Why is this loop always executing once?
What is %g in c?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What is a built-in function in C?
What is merge sort in c?
Are pointers really faster than arrays?
What are identifiers c?
What is hash table in c?
What is a pointer value and address in c?
How do I use void main?
State the difference between realloc and free.