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

Can circle be called an ellipse?

631


Are vectors passed by reference c++?

514


What is const in c++?

594


Is c++ an integer?

577


what is oops and list its features in c++?

542






How would you implement a substr() function that extracts a sub string from a given string?

562


What is a modifier in c++?

629


Explain the difference between realloc() and free() in c++?

528


What is else syntax in c++?

637


How do you find out if a linked-list has an end?

644


Write a program to find the Fibonacci series recursively.

601


Explain how we implement exception handling in c++?

573


What information can an exception contain?

665


What are the advantage of using register variables?

635


What are separators in c++?

622