Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Is it possible to multiply floating-point numbers with 16 hexadecimal numbers in C language?
Is it possible to multiply floating-point numbers with 16 hexadecimal numbers in C language?
The result depends on the data type of C.

C=A*B

There are two aspects of legitimacy: ① assignment operator = ② multiplication operator.

Let me talk about multiplication first. Floating point * floating point is legal, floating point * integer is legal, so the multiplication result is floating point.

The assignment operator C is floating-point, and the expression on the right is floating-point, so the assignment is legal.