This will generate compiler errors and a warning.A warning in lineint a = 2.9; //should use a typecast to convert to intand a compiler error in linecin >> "%d %f" >> a >> b; // cin does not take a right hand operand of const char
This will generate compiler errors and a warning.A warning on lineint a = 2.9; // should use a typecast to convert to intand a compiler error on linecin>>"%d%f" >> a >> b; //cin does not take a right hand operand of const char