diff between pointer and reference in c++?

Answer Posted / ravi.g

pointers have valid memory but reference does not have
memory

It means pointers points to some address(memory)
Reference does not points to any address(memory)

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


Can char be a number c++?

685


What is the difference between C and CPP?

716


What is the c++ code?

640


What is data type in c++?

648






What is the difference between while and do while loop? Explain with examples.

688


Explain the concept of copy constructor?

712


Write a program which uses functions like strcmp(), strcpy()? etc

715


What is general form of pure virtual function? Explain?

602


Is swift faster than c++?

644


Write a program to add three numbers in C++ utilizing classes.

721


What is the use of :: operator in c++?

692


What is the best way to declare and define global variables?

824


Is there structure in c++?

679


What is c++ best used for?

654