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 |
What is the difference between new/delete and malloc/free?
What is a Default constructor?
Why is c++ is better than c?
Is c++ a float?
How do we implement inheritance in c++?
Who was the creator of c++?
Define the operators that can be used with a pointer.
Why for local variables the memory required to hold the variable is allocated from the program stack and for new its allocated from the heap?
Explain data encapsulation?
What is diamond problem in c++?
Define namespace in c++?
What is object in c++ wikipedia?