Which among the given operators is referred to as ‘address of’ operator?

Nguyễn Pháp

New member
Which among the given operators is referred to as ‘address of’ operator?
A. *
B. ^
C. &
D. ~
 
Answer: c
Explanation: The ‘&’ is a unary operator that returns the memory address of its operand.
For example,
Code:
                           int* ip;
                           int num = 10;
                           ip = #
puts into ip the memory address of the variable num. This address is the location of the variable in the computer’s internal memory.
 

Tìm kiếm

Back
Top