Advertisement

What does -> mean?

Started by February 16, 2001 06:04 PM
1 comment, last by Squeejee 23 years, 11 months ago
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.
Advertisement
for squeejee:

are u currently involved in any project
if no, would u like to start one with me

if yes,good luck (can i join?)

This topic is closed to new replies.

Advertisement