Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which operator connects the structure name to its member name?

  • A.->
  • B..
  • C.Both (a) and (b)
  • D.None of the above

Answer: B

Correct answer: .

The dot connects a structure variable to its member: s.member. Through a pointer the arrow is used instead, p->member, which is shorthand for (*p).member.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.