GATE 1996
February 1, 2024Programming
February 1, 2024Question 8492 – Operator
Which of the following ‘C’ language arithmetic expressions has logical error?
Correct Answer: B
Question 2 Explanation:
→In the option B, -10%-2 gives remainder of “0” and then expression becomes 4/0/3.
→4/0 gives divide by zero error.
→4/0 gives divide by zero error.
-13 % -5 + 3;
4 / (-10 % -2) / 3;
3 / (-13 % -5) / 3;
-5 % 3 / 13;
Subscribe
Login
0 Comments