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


Please Help Members By Posting Answers For Below Questions

Subtract Two Number Without Using Subtraction Operator

357


How can I remove the trailing spaces from a string?

616


How does struct work in c?

611


explain what is a newline escape sequence?

690


What is variables in c?

608






code for quick sort?

1622


string reverse using recursion

1812


define string ?

669


I need a sort of an approximate strcmp routine?

661


What is property type c?

605


What is the difference between a string and an array?

708


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...

4905


Does c have enums?

602


What is the difference between the expression “++a” and “a++”?

650


What is header file in c?

604