Just Programming
Pages
Home
C C++ Topics
JAVA Aptitude
Assaan IT Solutions
My Facebook Group
My Site
Thursday, 11 April 2013
Question: Is there any problem with the following: char *a=NULL; char& p = *a;?
Question:
Is there any problem with the following: char *a=NULL; char& p = *a;?
Answer:
The result is undefined. You should never do this. A reference must always refer to some object.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment