main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Answer Posted / s mahesh babu
56 and 93....
why bcz..... x=y++ + x++; in this expression xy values are post increment mean .. value not change so x=20+35-->55;
in next expression y=++y + ++x;...... so y & x pre increment ... here y=37+56.... 93
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Can the sizeof operator be used to tell the size of an array passed to a function?
Write a program to reverse a given number in c language?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
Hi can anyone tell what is a start up code?
What is d scanf?
What is the difference between text and binary modes?
Differentiate between functions getch() and getche().
What is auto keyword in c?
What do you mean by keywords in c?
What is methods in c?
Why is structure padding done in c?
What is the size of enum in c?
Difference between Function to pointer and pointer to function
Explain what are multibyte characters?
What are static variables in c?