What is the difference between Pointer and a Reference?
When you would use them?
Answer Posted / man
Reference is alias of a variable i.e. a constant pointer
which reference to a variable and can not be NULL.
You can not can get the address of ref. They are used as a
variable.
Pointers are variale that hold address of variable and can
be NULL. And can point to any number of variable.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
What is c++ manipulator?
Difference between a homogeneous and a heterogeneous container
an operation between an integer and real always yeilds a) integer result b) real result c) float result
what is data abstraction in C++?
How do you decide which integer type to use?
Define stacks. Provide an example where they are useful.
We use library functions in the program, in what form they are provided to the program?
How would perform Pattern Matching in C++?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What do you mean by stack unwinding in c++?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
What are vectors used for in c++?
Write about the access privileges in c++ and also mention about its default access level?
Describe exception handling concept with an example?