What is the result of the expression (6 + 3) / 0 in C?
A. 0
B. Infinity
C. Compilation error
D. Runtime error
Answer: Option D
Solution(By Examveda Team)
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.Related Questions on Operators and Expressions
What does the ++ operator do in C when applied to a variable?
A. Decrements by 1
B. Adds 1
C. Doubles the value
D. Leaves it unchanged
Join The Discussion