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
I have a varargs function which accepts a float parameter?
Where does the name "C" come from, anyway?
How do you list files in a directory?
Is that possible to store 32768 in an int data type variable?
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
what do the 'c' and 'v' in argc and argv stand for?
How can I pad a string to a known length?
Which is the best website to learn c programming?
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?
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)
What does return 1 means in c?
Explain 'far' and 'near' pointers in c.
What is static function in c?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Compare interpreters and compilers.