What is the output of the give expression float x = 123/0
Answers
Answered by
0
Answer:
Inf
Explanation:
Whenever we divide an integer from a zero number then the result is infinity. Now in computer programming languages there is no specific expression when printing infinity as an integer. However the floating expression of infinity is generally mentioned an "inf" in most of the programming languages. This is expressed as a string and there is no numeric expression for an infinite value or result
Similar questions