C Programming MCQ

1:

The statement 

 if ( myPtr != NULL )
         *myPtr = NULL;
else
         *myPtr = NULL;


has the same effect as the statements(s)

A.

if(myPtr) *myPtr = NULL;
    else *myPtr = NULL;

B.

*myPtr = NULL;

C.

if(!myPtr) *myPtr = NULL;
   else *myPtr = NULL;

D.

All of these

 

Answer : D

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.