main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Answer Posted / manju
while calculating the x value,x & y values are post
incremented.So the values of x & y are added and then
incremented i.e. x=56,y=36
while calculating the y value,x & y values are
preincremtned,so x & y values are incremented and then
added i.e. x=57,y=37.
so x=57
y=57+37=94.
| Is This Answer Correct ? | 58 Yes | 18 No |
Post New Answer View All Answers
What is string constants?
State two uses of pointers in C?
How can you allocate arrays or structures bigger than 64K?
What is the use of bit field?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
Explain what is the stack?
Explain how can I pad a string to a known length?
What is data structure in c language?
What is #line used for?
What is the ANSI C Standard?
Which is better oop or procedural?
How #define works?
What is a double c?
How can I recover the file name given an open stream?
What does calloc stand for?