Which of the following values gives the memory address of the variable pointed to by p_a?
a. P_A;
B. * P_A;
C. & amp; P_A;
D. address (p_a);
So, I am reading this book entitled "Jumping in C ++", and this poll appeared after one chapter. When I checked the correct answer from the book, he showed that the correct answer was C. & amp; P_A; . Wouldn't p_a just want to specify the memory address of the pointer variable p_a instead of the memory address of the variable that it points to?
Now I would say that this is not the right answer, but I can not be sure. In the end, I'm still a newbie, so I dare not start interrogating the answers in the book. I would say the correct answer: A. Tell me, is there an error in the answers or what?
xtpro source
share