Which of the following assignments are valid?If an assignment is not valid,state the reason.When not given assume that each variable is declared.
In C++ all operations must occur to the right of the assignment operator. So letters:
f and g are not valid because the compiler does not know where to assign the result of the right side of the equation.
Also, assigning an integer a double value is possible, but anything beyond the decimal is going to get truncated.