Explanation : If y = 11, the expression 3 * (y - 8) / 9 becomes 3 * 3 / 9. Which evaluates to 1.
But the expression ( y - 8 )/ 9 * 3 becomes 3 / 9 * 3. Which evaluates to 0 (since 3 / 9 is 0)
Explanation : y * = 2 means y = y * 2 i.e. y = 4, in this problem.
So, the expression is equivalent to x = 4 + 4, which is 8.
So, 8 will be printed.
However, the order in which the operands are evaluated is implementation-dependent.
If the right operand is evaluated first, the result will be 6.
input output operations in c Questions can be used to give quizzes by any candidate who is preparing for UGC NET Computer Science
This input output operations in c Questions section will help you test your analytical skills in a tricky method, thereby giving you an edge over other students
Any student who wants to prepare for DOEACC A Level, DOEACC B Level, and DOEACC C level can also use these Objective Type Questions Answer.
All candidates who have to appear for the Kendriya Vidyalaya Entrance exam can also refer to this mcq section.
You can also get access to the input output operations in c MCQ ebook.
input output operations in c Questions can be used in the preparation of JRF, CSIR, and various other exams.
You can also download pdf for these input output operations in c multiple-choice questions Answers.
This input output operations in c Multiple Choice Questions Answers section can also be used for the preparation of various competitive exams like UGC NET, GATE, PSU, IES, and many more.
input output operations in c Questions can be used to gain a credit score in various undergraduate and postgraduate courses like BSc, MSc and MCA
input output operations in c Questions for UGC NET Computer Science
input output operations in c MCQ
input output operations in c Multiple choice questions