C Programming MCQ

1:

Consider the two declarations
void *voidPtr;
char *charPtr;

Which of the following assignments are syntactically correct?

A.

voidPtr = charPtr

B.

charPtr = voidPer

C.

*voidPtr = *charPtr

D.

*charPtr = voidPtr

 

Answer : A

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.