Vidyalelo
C Programming · Q29

Operators and Expressions

Programming · C Programming · question 29

Q29

What is the result of the expression (6 + 3) / 0 in C?

A.
0
B.
Infinity
C.
Compilation error
D.
Runtime error
Answer

Answer: 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.