Sail E0 Webinar
Question

Is this a correct way for NULL pointer assignment?
int i=0;
char *q=(char*)i;


Options:
A .  Yes
B .  No
Answer: Option B

The correct way is char *q=0 (or) char *q=(char*)0



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers