What does -> mean?
I have seen a ''->'' used in code before. What does it do?
-----------------------
Hail to the king, baby.
-----
-> is used for pointers to structures to access their members. Instead of (*objptr).member, you can instead say objptr->member to make it easier. It is just another shortcut in C/C++, like the ++ operator.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement