Q:

Which is correct syntax for declaring pointer to object?

0

Which is correct syntax for declaring pointer to object?


  1. className* objectName;
  2. className objectName;
  3. *className objectName;
  4. className objectName();

All Answers

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

 (a).className* objectName;

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
Which operator should be used to access the member... >>
<< Which language among the following doesn’t allow...