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
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
Write a program to reverse a given number in c?
How to get string length of given string in c?
Why c language is called c?
What is integer constants?
Suggesting that there can be 62 seconds in a minute?
What is oops c?
What are examples of structures?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
When is the “void” keyword used in a function?
Why string is used in c?
what will be maximum number of comparisons when number of elements are given?
What is f'n in math?
What is the difference between exit() and _exit() function?
What is main () in c?