Home » C++ Programming » Data Structures » Question
  1. Which of the following accesses a variable in structure *p?
    1. p>var;
    2. p.var;
    3. p-var;
    4. p->var;
    5. None of these
Correct Option: D

Because in a structure pointer, the data element is declared as above only.



Your comments will be displayed only after manual approval.