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

What is object oriented programming (oop)?

734


What is one dimensional array in c++?

692


How would you call C functions from C++ and vice versa?

735


What problems might the following macro bring to the application?

704


Can we delete this pointer in c++?

789






What are the various situations where a copy constructor is invoked?

708


Is c++ low level?

693


In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

706


What is the difference between c++ and turbo c++?

676


What is a sequence in c++?

661


Write a program using display() function which takes two arguments.

700


Write a C++ Program to check whether a number is prime number or not?

723


What is a lambda function c++?

657


Difference between class and structure.

792


Explain queue. How it can be implemented?

772