Question: Which statement is true about a 2 . p ? #include using namespace std; class A { public: int * p; A ( ) {
Which statement is true about ap
#include
using namespace std;
class A
public:
int p;
A
thisp new int;
;
int mainint argc, char const argv
A a a;
ap;
a a;
return ;
Group of answer choices
ap is a pointer pointing to the memory address that ap is pointing at
ap is a pointer pointing to the memory address of ap
ap is a pointer pointing to the memory address that contains the same value as what ap is containing.
ap is a pointer pointing to the memory address that contains the same value as the memory address that ap is pointing at and these two memory addresses are not the same.
ap and ap has the same value.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
