Chapter 9: Problem 14
The __________ operator can be used to determine a variable’s address.
Short Answer
Expert verified
The operator used to determine the address of a variable is the "address-of" operator, represented by the ampersand (&) symbol. It is a unary operator and returns the memory address of its operand. This operator is especially useful when working with pointers in C or C++, as pointers store memory addresses rather than direct values of variables. For example, if we have an integer variable 'num' and want to store its address in a pointer 'ptr', we would use the address-of operator like this: `ptr = #`. When printed, it will display the memory address where 'num' is stored.