(Solved):When this is placed in front of a variable name, it returns the address of that variable: (a) asterisk (*) (b) conditional operator (c) ampersand (&) (d) semicolon (;) (e) None of these What will t… View Answer…

 

Question

When this is placed in front of a variable name, it returns the address of that variable:

(a) asterisk (*)

(b) conditional operator

(c) ampersand (&)

(d) semicolon (;)

(e) None of these

What will the following statement output?

cout << &num1;

(a) The value stored in the variable called num1

(b) The memory address of the variable called num1

(c) The number 1

(d) The string “&num1”

(e) None of these

 

EXPERT ANSWER

The answer to the first part of the question is:

Scroll to top