MCQs
Total Questions : 17
| Page 2 of 2 pages
Answer: Option B. -> p is array of pointer to function
In the above declaration the variable p is array not pointer.
Answer: Option D. -> all of the mentioned
Because it doesn't know the type of object it is pointing to, So it can point to all objects.
Answer: Option C. -> 2
Size of any type of pointer is 2 byte.
Answer: Option C. -> both a & b
both a & b
Answer: Option B. -> when it cast to another type of object
By casting the pointer to another data type, it can dereferenced from void pointer.
Answer: Option B. -> class member in c++
Because the class member will have a definite type, So it cannot pointed by a void pointer.
Answer: Option A. -> pointer arithemetic
Because void pointer is used to cast the variables only, So pointer arithemetic can't be done in a void pointer.