Which of the following accesses a variable in structure *b?

a) b->var;
b) b.var;
c) b-var;
d) b>var;

1 thought on “ Which of the following accesses a variable in structure *b?”

  1. a
    Explanation: Because arrow operator(->) is used to access members of structure pointer whereas dot operator(.) is used to access normal structure variables.

Leave a Comment