Pointers

closed account (jw6XoG1T)
So i was just wondering. Why are pointers so important in C++? lol i guess i just havent really seen any applcations for it personally yet
Pointers make complex data structures, such as linked lists and trees, possible. They also are the guts behind the passing of arrays, such as c strings. The ability to have a pointer to any object, including functions, allows for higher-order functions, such as map and reduce.
closed account (43RGz8AR)
Also see:
http://www.cplusplus.com/doc/tutorial/pointers/
Topic archived. No new replies allowed.