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

Answer Posted / s mahesh babu

56 and 93....

why bcz..... x=y++ + x++; in this expression xy values are post increment mean .. value not change so x=20+35-->55;

in next expression y=++y + ++x;...... so y & x pre increment ... here y=37+56.... 93

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have a varargs function which accepts a float parameter?

583


Where does the name "C" come from, anyway?

647


How do you list files in a directory?

567


Is that possible to store 32768 in an int data type variable?

694


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

1848






what do the 'c' and 'v' in argc and argv stand for?

648


How can I pad a string to a known length?

614


Which is the best website to learn c programming?

585


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

1575


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

1635


What does return 1 means in c?

589


Explain 'far' and 'near' pointers in c.

710


What is static function in c?

639


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

646


Compare interpreters and compilers.

642