main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Answer Posted / bala
56 93.
I will rewrite the above program for ur understand.
int x=20,y=35;
int x1,y1;
x1=y++ + x++; //this line y=35 and x=20 before assign the
value to x.
x=x1; // Value of x1=55, y=36 and x=21.
y1=++y + ++x;//this line y=37 and x=56 before assign the
value to y.
y=y1;// Value of x=56, y=37 and y1=93.
Finally x=56 and y=93
| Is This Answer Correct ? | 56 Yes | 10 No |
Post New Answer View All Answers
What is hungarian notation? Is it worthwhile?
What do you understand by friend-functions? How are they used?
Why shouldn’t I start variable names with underscores?
Why C language is a procedural language?
What is structure of c program?
What does printf does?
What is the newline escape sequence?
What are actual arguments?
What is meant by initialization and how we initialize a variable?
Can you please explain the difference between strcpy() and memcpy() function?
Where register variables are stored in c?
What is the use of #include in c?
How a string is stored in c?
What are the preprocessor categories?
What is the difference between Printf(..) and sprint(...) ?