Functions cannot return a floating point number in c
Answers
Answered by
0
A function can return floating point value. Explanation: No, If a function return type is declared as void it cannot return any value. If a function contains two return statements successively, the compiler will generate warnings.
Answered by
0
No, A functions can be a return a floating-point number in c
What is the Floating-point number in C?
- In C, floating-point types support the vast majority of the same arithmetic and relational operators as integer types.
- The floating-point types float, double, and long double are used in C to represent real numbers.
- In C, floating-point types support the majority of the same arithmetic and relational operators as integer types; x > y, x / y, and x + y are all valid when x and y are floats.
Hence, Functions cannot return a floating-point number in c is the false statement." In c, a function can return a floating-point number".
Similar questions