Contents

What happen if the statement deletes p; is executed where p is pointer variable?
a) p is deleted from heap                                  
b) p is delected from stack
c) variable which p points is deleted
d) both variables point p are deleted

c

Which of the following answers is the most accurate for following statement?
a=*ptr_m;
a) variable must be pointer                               
b) ptr_m is pointing to 
assign variable a
c) ptr_m is being assign to variable a
d) address of ptr_m is being assingn variable a

b

A pointer variable amy be initialized with
a) any non-zero integer value                          
b) any address in memory
c) both a & b                       
d) none of these

b

Every byte in computer memory is assigned a unique…….
a) pointer                              
b) address
c) name                                
d) none of these

b

What does the following statement do?
double *total;
a) declare a pointer variable total
b) initialized variable name total
c) declare double variable name num2
d) none of these

a

C++ enables dynamic allocation of memory by providing the operator……..
a) create                                               
b) allocate
c) dynamically    
d) new

d