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 is a down cast?
Write a C++ Program to check whether a number is prime number or not?
Is c++ a software?
State two differences between C and C++.
Explain the register storage classes in c++.
Which is best c++ or java?
You want to link a c++ program to c functions. How would you do it?
Is c better than c++?
What are the basics of local (auto) objects?
How should a contructor handle a failure?
Write a program to find the reverse Fibonacci series starting from N.
What is a rooted hierarchy?
What is a multiset c++?
There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?