int * p = NULL; // the size of p is:________.
// the value of p is:___ ____
double * q=NULL; // the size of q is:__________
// the value of q is:________
char * t=NULL; // the size of t is:________,
// the value of t is:_______
p = &a; // the value of p is:_____________
q = &d; // the value of q is:_____________
t = &c; // the value of c is:_____________
cout << *p << endl; // This displays ______. When accessing *p, the following ___ number of bytes are accessed
cout << *q << endl; // This displays ______. When accessing *q, the following ___ number of bytes are accessed
cout << *t << endl; // This displays ______. When accessing *t, the following ___ number of bytes are accessed
cout << "p+1=" << p+1 << endl; // How much is p differs from p+1?______
cout << "q+1=" << q+1 << endl; // How much is q differs from q+1?______
cout << "t+1=" << t+1 << endl; // How much is t differs from t+1?______
What I have tried:
This is what I did so far, I'm not sure how to do the rest. I very new to c++. Any help would be appreciated.
int * p = NULL; // the size of p is:____8____.
// the value of p is:___ 0____
double * q=NULL; // the size of q is:_____8_____
// the value of q is:____0____
char * t=NULL; // the size of t is:____8____,
// the value of t is:____0___