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.