Contents

What is the correct declaration of void pointer?
a) void *pointerVoid;             
b) int *pointerVoid
c) void *pointerInt                   
d) int *pointerInt

a

Pointer Initialization


Assigning values to pointers at declaration time is called……
a) pointer declaration               
b) pointer initialization
c) assigning pointer values       
d) none of these

b



A pointer can be initialized with……
a) null                         
b) zero
c) address of object of same type
d) all of these

d

Which of the following is the correct initialization of float temperature?
a) float &ptem= *temp             
b) float *ptem= &tem
c) float $tem= *tem                             
d) float *tem= &ptem

b

What is the correct definition of null pointer?
a) int *NPtr;               
b) int @NPtr;
c) int %NPtr                
d) int #NPtr

a

Explanation: NPtr stands for Null Pointer