Q29
What is the result of the expression (6 + 3) / 0 in C?
A.
0
B.
Infinity
C.
Compilation error
D.
Runtime error
AnswerAnswer: Option D
Solution
Answer: Option D
Solution:
In C, dividing a number by zero is undefined and leads to a runtime error. The expression (6 + 3) / 0 will result in a runtime error because dividing by zero is not allowed in mathematics or in C programming.