function by reference and pointer

October 7, 2010 at 22:58:37
Specs: Windows XP
i did not get function arguments by reference and const reference and also function by address.. I studied alot but i did not get it.. Can anybody help me in this regard.

See More: function by reference and pointer

Report •

October 9, 2010 at 16:03:58
The basic concept is thus: Every byte of memory has an address. If you knew the location of an int, and that it was an int, then you should be able to use that int. Pointers and references store the type of the value (in this example, int), and where it is in memory.

As for the difference between pointers and references, references are pointers that cannot change the address they're told to remember, with simplified syntax.

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question