Another Question to Pass my Time
An alias is a pointer that points to the same thing another pointer points to. Likewise with references
int x;int& y(x);//y is an alias for x
It''s your question that is screwed Andrew, not the reply. Try looking up the word "Alias" in a dictionary, and you''ll see where you are wrong. Pointers are aliases to whatever you make them point to, so when your question doesn''t make much sense. Perhaps you mean "What is the difference between pointers and references?"? If so, there is a little search button to the top right of this forum, I''ve seen it discussed a few times before.
Death of one is a tragedy, death of a million is just a statistic.
Death of one is a tragedy, death of a million is just a statistic.
A pointer is one way of implementing an alias. So is a reference. That''s all.
[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost ]
[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost ]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement