Pointers

Q.

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

A. Yes
B. No

Answer : Option B

Explanation :

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