If double *p_total = &total; what will the output o statement: cout<<&p_total;
a) address of total
b) value of total
c) value of p_total
d) address of p_total
The statement int*p; has the same meaning as…
a) int p;
b) int *p;
c) *int ptr;
d) int p*
Which of the following assigns the address of x to pointer p1?
a) *p1=&x;
b) p1=x;
c) p1=&x;
d) &p1=x;
Which of the following statement in invalid?
a) int p=&t;
b) int p=int *t;
c) float t=&p2;
d) all of these
What does the following statement do? Double *total;
a) declare pointer variable
b) initialize variable name
c) access the value of variable name
d) none of these
Which of the following statement is true after executing the code?
cha x=’M’; char *p=&x; *p=’W’;
a) p hold the valur of M
b) p hold the value of W
c) p point the variable x
d) p points the value W