Is there any problem with the following code

char *a=NULL;
char& p = *a;

ANS :-The result is undefined. You should never do this. A reference must always refer to some object.

No comments:

 
Top Blogs