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


Please Help Members By Posting Answers For Below Questions

how to connect with oracle 9i with server in socket program in c/c++

1847


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

787


What are the sizes and ranges of the basic c++ data types?

585


What is a linked list in c++?

540


Explain terminate() function?

587






How is static data member similar to a global variable?

576


Why c++ is created?

572


Write a Program for find and replace a character in a string.

550


What is the difference between prefix and postfix versions of operator++()?

591


What is the meaning of string in c++?

568


Explain the concept of friend function in c++?

599


Differentiate between late binding and early binding. What are the advantages of early binding?

578


What is data hiding c++?

597


Why are pointers not used in c++?

626


What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

571