Is there any problem with the following:

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



Is there any problem with the following: char *a=NULL; char& p = *a;?..

Answer / neelam saini

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

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

The "virtual" specifier in a member function enables which one of the following? a) Monmorphism b) Late binding c) Metamorphism d) Solomorphism e) Inheritance

4 Answers   Quark,


What is the difference between #import and #include in c++?

0 Answers  


what is the C++

1 Answers   Wipro,


What is an arraylist c++?

0 Answers  


Define a program that reads two matrices of size 3x3 with real values from the user then prints their sum, difference and multiplication.

0 Answers   TCS,






What is the topic of the C++ FAQ list?

1 Answers  


Which bit wise operator is suitable for putting on a particular bit in a number?

0 Answers  


Which is not a valid keyword a) public b) protected c) guarded

0 Answers  


structure that describe a hotel with name, address,rooms and number of rooms

2 Answers  


Differentiate between the manipulator and setf( ) function?

0 Answers  


write a program that takes two numbers from user that prints the smallest number

2 Answers  


What does extern mean in a function declaration in c++?

0 Answers  


Categories