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).
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).
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()
that is called the arrow operator which is used to access the members of a class or a struct using a pointer.
Check the link
http://iqsoft.co.in/cpa/notes-cpp/structs/arrow.html
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.