main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}

what is the output?

Answer Posted / yusuf

x++ means we have to assign the value and then the
increment comes to light.......so
x=y++ + x++;
=35 + 20;
=55

now the value of x=55 then
y=37 + 56;
=93

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between exit() and _exit() function?

634


about c language

1606


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2030


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2413


What are 3 types of structures?

594






What is the condition that is applied with ?: Operator?

665


What is the difference between abs() and fabs() functions?

607


How can I direct output to the printer?

814


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2222


Tell me what is null pointer in c?

615


Can you please explain the difference between malloc() and calloc() function?

621


When should a type cast not be used?

627


what is ur strangth & weekness

1820


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1525


Why c is procedure oriented?

574