206k views
2 votes
.The _________ , also known as the address operator, returns the memory address of a variable.

a. asterisk ( * )
b. ampersand ( & )
c. percent sign ( % )
d. exclamation point ( ! )

User Mixonic
by
7.9k points

1 Answer

4 votes

Answer:

Option (b)

Step-by-step explanation:

Whenever we want to pass a variable by address and not as value, we have to pass it as reference and reference of a variable can be made by putting '&' in front of the variable.

For example - int number=4; // it is a variable whose value is 4

/*Lets say a function setNum takes it as argument as reference then call will be like below line*/

setNum(&number);

User Dorony
by
9.0k points