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
What do you mean by overhead in c++?
Can I create my own functions in c++?
If a header file is included twice by mistake in the program, will it give any error?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
What is while loops?
what are the characteristics of Class Members in C++?
What is oops in c++?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
Can constructor be static in c++?
Is python written in c or c++?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
Explain what happens when a pointer is deleted twice?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
Explain the use of virtual destructor?
What are separators in c++?