what does the expression float a=35/0 return
Answers
Answer:
10) What does the expression float a = 35 / 0 return? Explanation: In Java, whenever we divide any number (double, float, and long except integer) by zero, it results in infinity. ... But on dividing an integer by zero, it throws a runtime exception, i.e., java.lang.ArithmeticException
Whenever we divide any number (double, float, and long except integer) by zero in C++, the result is infinity. ... But dividing an integer by zero throws an exception at runtime,
In C++, float and double are used to store floating-point numbers. Floating point values are real numbers, eg: 1801.0, -4.258, or 0.08244. Now understand how float differs from C++ double.
Float is short for "floating point". By definition, it is a basic data type built into the compiler that is used to define floating-point numeric values. C, C++, C#, and many other programming languages recognize float as a data type. Other common data types include int and double.
Since the range is smaller than the double type, the float was the better choice when working with thousands or millions of floating-point numbers due to its speed. However, the advantage of float over double is negligible because the calculation speed has increased dramatically with the new processors.
Another common use for float is currencies.
brainly.in/question/17489293
#SPJ5