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
Why clrscr is used in c?
can we change the default calling convention in c if yes than how.........?
What is bin sh c?
What is a char c?
What is the size of empty structure in c?
What are local static variables? How can you use them?
How can I implement sets or arrays of bits?
Why do we use c for the speed of light?
What does void main return?
Write program to remove duplicate in an array?
What is a class c rental property?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
What is bubble sort in c?
What is the purpose of ftell?