Answer the following questions true (T) or false (F)
1. The names x, y, and z are satisfactory variable names for the lengths of the legs and hypotenuse of a triangle.
2. In C++ you can assign an expression of type int to a variable of type double with no problem.
1. False
Explanation: Names should communicate to the human reader the meaning of the value. These identifiers do not communicate the meaning of their values..
2. True
Explanation: Assignment from an integer type to a floating point type can lose information and should be avoided. Some compilers will warn, others may give an error message, but you should avoid this.
Computer Science & Information Technology