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 ? | 37 Yes | 8 No |
Post New Answer View All Answers
Subtract Two Number Without Using Subtraction Operator
How can I remove the trailing spaces from a string?
How does struct work in c?
explain what is a newline escape sequence?
What is variables in c?
code for quick sort?
string reverse using recursion
define string ?
I need a sort of an approximate strcmp routine?
What is property type c?
What is the difference between a string and an array?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
Does c have enums?
What is the difference between the expression “++a” and “a++”?
What is header file in c?