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 are the different types of objects used in c?
Tell us something about keyword 'auto'.
where are auto variables stored? What are the characteristics of an auto variable?
Write a program to generate the Fibinocci Series
Explain what are header files and explain what are its uses in c programming?
Why can’t we compare structures?
What is hungarian notation? Is it worthwhile?
Where can I get an ansi-compatible lint?
What is function and its example?
Is array a primitive data type in c?
How can I insert or delete a line (or record) in the middle of a file?
What are integer variable, floating-point variable and character variable?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What is ambagious result in C? explain with an example.