adplus-dvertising
frame-decoration

Question

Which is the correct syntax to call a member function using pointer?

a.

pointer->function()

b.

pointer.function()

c.

pointer::function()

d.

pointer:function()

Answer: (a).pointer->function()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which is the correct syntax to call a member function using pointer?