Q:

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

0

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


  1. pointer->function()
  2. pointer.function()
  3. pointer::function()
  4. pointer:function()

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(a).pointer->function()

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING - OBJECTS AND POINTERS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
If pointer to an object is created and the object ... >>
<< Is name of an array of objects is also a pointer t...