Which is the correct syntax to call a member function using pointer?
(a) pointer->function()
(b) pointer.function()
(c) pointer::function()
(d) pointer:function()
This question was posed to me during an interview.
My question is from Pointer to Objects topic in chapter Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming