What is the difference between Pointer and a Reference?
When you would use them?
Answer Posted / vinay bondade
A Pointer is not a condt pointer unless you define it in
that way,but a referrence on the contrary is a const
pointer by default and adding to this implementation it is
deferrenced automatically.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is recursion?
What is the most useful programming language?
When do we use copy constructors?
Can a constructor return a value?
What is a constant? Explain with an example.
Define Virtual function in C++.
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
Define a nested class. Explain how it can be useful.
How to give an alternate name to a namespace?
What are formatting flags in ios class?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
What causes a runtime error c++?
What is a type library?
What is const in c++?
Is c++ still being used?