What is the difference between reference type and pointers.

Answer Posted / p.madhupriya

pointer is a variable that points to address of another
variable .
reference is variable that points to address of that
variable only.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is swift so fast?

614


What is virtual base class uses?

705


Are php strings immutable?

555


What are the advantages of inheritance in c++?

648


Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.

2088






What is a terminating character in c++?

756


What is the auto keyword good for in c++?

615


How do I download c++?

564


What is the type of this pointer in c++?

626


What is &x in c++?

552


Explain differences between new() and delete()?

612


Can we declare a base-class destructor as virtual?

577


When can I use a forward declaration?

616


Describe Trees using C++ with an example.

598


What are guid?

679