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 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the modulus operator?

742


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

748


Explain what is the difference between functions getch() and getche()?

612


What is the difference between #include and #include 'file' ?

610


What is the difference between typedef struct and struct?

602






How do I copy files?

625


What is formal argument?

654


write a c program in such a way that if we enter the today date the output should be next day's date.

1685


what is different between auto and local static? why should we use local static?

648


Which programming language is best for getting job 2020?

611


number of times a digit is present in a number

1545


Why we write conio h in c?

569


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

2522


What is the process of writing the null pointer?

611


What is header file definition?

575