Contents

Generic pointers can be declared with……
a) auto                         
b) void
c) asm                         
d) none of these

b

What is size of generic pointer in c?
a) 0                 
b) 1                 
c) 2     
d) null

c

Referencing a value through a pointer is called……
a) direct calling
b) indirection
c) pointer referencing
d) all of these

b

Explanation: indirection means only in forward direction



What is the meaning of statement “string* x, y;”?
a) x is pointer and y is string  
b) x is string and y is pointer
c) both x and y are pointers      
d) both x and y are strings

a

A void pointer cannot point to which of these?
a) methods in c++        
b) class member in c++
c) both a & b               
d) none of these

b

Which one of the following is not possible to the pointer?
a) hold address of object          
b) point one past the end of object
c) zero                   
d) point to a type

d