In C++, a variable that has been defined but not initialized may not be use as an ______. (l-value or r-value).
Fill in the blank(s) with the appropriate word(s).
r-value
The value of an uninitialized variable may not be fetched. C++ does not
enforce this. If an uninitialized variable’s value is fetched you get whatever value was left
in the memory location by a previous user. Note that the value is garbage in the
dictionary sense, It is not a random value.
You might also like to view...
HTTP is the language used by browsers to view Web pages
Indicate whether the statement is true or false
Answer the following statements true (T) or false (F)
1. All of the relational operators are binary. 2. To check if a variable has a particular value, use the = relational operator, as in the statement 3. A pair of characters or a pair of string objects can be compared with any of the relational operators. 4. The rule for matching an else with an if is that an else goes with the last if statement before it that doesn't have its own else. 5. If the sub-expression on the left side of an || operator is true, the expression on the right side will not be checked.