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

Discussion

Which operator connects the structure name to its member name?

  • A.-
  • B.->
  • C..
  • D.both . and ->

Answer: C

Correct answer: .

The dot operator selects a member of a structure variable: s.member. The arrow -> does the same through a pointer, and is exactly equivalent to (*p).member.

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

Post your comment

Please log in or register to post a comment.