C++ : Type Conversions
We know that when constants and variables of different types are mixed in an expression, C applies automatic type conversion to the operands as per certain rules.Similarly,an assignment operation also causes the automatic type conversion.THe type of data to the right of an assignment operator is automatically converted to the type of the variable on …