I am little bit confuse about this operator. Can any one tell me what does operator -> internally. And what are the importance of -> in pointer?

Appreciated in advance for help (all daniweb group).

Recommended Answers

All 2 Replies

in a class (or struct)
where c is a pointer to said class and member is a public method of c (can be a public field also)
c->member()
is the same as (*c).member()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.