Contents

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

d

The statement int*p; has the same meaning as…
a) int p; 
b) int *p;              
c) *int ptr;  
d) int p*

b

Which of the following assigns the address of x to pointer p1?
a) *p1=&x;                          
b) p1=x;
c) p1=&x;                            
d) &p1=x;

c

Which of the following statement in invalid?
a) int p=&t;                          
b) int p=int *t;
c) float t=&p2;    
d) all of these

d

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

a

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

d