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

Declare a class vehicle and make it an abstract data type.

726


Define anonymous class.

807


If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3

1082


What is the advantage of an external iterator.

759


What's c++ used for?

829


Why c++ is the best language?

793


How do you invoke a base member function from a derived class in which you have not overridden that function?

838


Write a code/algo to find the frequency of each element in an array?

827


What are the advantage of using register variables?

843


Does c++ have a hash table?

732


What are the defining traits of an object-oriented language?

921


What is implicit pointer in c++?

800


What are the unique features of C++.

777


What is stl containers in c++?

775


There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.

2746