Is there any problem with the following:

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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are member functions used in c++?

562


What is stl containers in c++?

589


Which programming language should I learn first?

581


What is the difference between public, private, and protected access?

620


What is ios flag in c++?

689






What does return 0 do in c++?

580


What is basic if statement syntax?

570


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3431


What is the fastest c++ compiler?

589


What is the precedence when there is a global variable and a local variable in the program with the same name?

640


How we can differentiate between a pre and post increment operators during overloading?

600


How do I run c++?

577


Write a program using display() function which takes two arguments.

611


What is boyce codd normal form in c++?

698


Define vptr.

598