main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Answer Posted / jaya prakash
57 94
{x=y++ + x++;}
equal to
{
x=y+x;//35+20
x++; //56
y++; //36
}
y=++y + ++x;
equal to
{
++y;//37
++x;//57
y=y+x;//37+57
}
So x=57
y=94
| Is This Answer Correct ? | 223 Yes | 59 No |
Post New Answer View All Answers
What is time null in c?
#include
I came across some code that puts a (void) cast before each call to printf. Why?
What are the advantages of using macro in c language?
What is a far pointer in c?
The file stdio.h, what does it contain?
What is the use of clrscr?
What is difference between && and & in c?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
How many types of functions are there in c?
Why do we need arrays in c?
How can I access an I o board directly?
What are dangling pointers in c?
Is c still relevant?
How can you increase the size of a dynamically allocated array?