ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Which is the correct syntax to call a member function using pointer?
Correct Answer: C — pointer->function()
The pointer should be mentioned followed by the arrow operator. Arrow operator is applicable only with the pointers. Then the function name should be mentioned that is to be called.