Vidyalelo
Computer Science · Q335

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 335

Q335

Which of the following statements will assign the address of the age variable to the agePtr pointer?

A.
agePtr = &age;
Answer
B.
agePtr = *age;
C.
&agePtr = age;
D.
*agePtr = age;
E.
agePtr -> *age;

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board