Hi All,
Could anyone listdown the differences between pointer & reference??
Hi,
Check this link.
http://www.dgp.toronto.edu/~patrick/csc418/wi2004/notes/PointersVsRef.pdf
I hope you will get answer.
Regards,
Prithvi
A pointer is an object which represents an address in memory.
A reference is just a 'nickname' or 'alias' for an existing object.
I'm not going to go into any further detail since the nature of the question sounds a little bit like 'please do my homework for me'. Have you tried a google search? you ought to be able to come up with some fairly detailed search results about Pointers-vs-references
:)
The reason for my question was not getting the difference. Probably my description was wrong. Sorry for that.
I would ask to the point in future....
>>The reason for my question was not getting the difference.
Ok, so what is it that you wanted to ask?
>>I would ask to the point in future....
Absolutely! you can't be vague around here because if you don't know what you want we sure won't either.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.