main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
what is the output?
Answer Posted / fazlur rahaman naik
x = 57 and y = 94.
because the value of x = y++ + x++(35 + 20) is 55 and then
it incremented here x++ i.e.56 and the value of y = 36 and
then the value of y = ++y + ++x(57 + 37) = 94.
| Is This Answer Correct ? | 38 Yes | 8 No |
Post New Answer View All Answers
How to set file pointer to beginning c?
What is the difference between void main and main in c?
How to declare a variable?
how to write optimum code to divide a 50 digit number with a 25 digit number??
How do you use a 'Local Block'?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What is a sequential access file?
What is #include stdlib h?
List the difference between a While & Do While loops?
What is a stream in c programming?
What is the explanation for cyclic nature of data types in c?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What is the argument of a function in c?
Why static variable is used in c?
Explain what does it mean when a pointer is used in an if statement?