How are the members of a structure accessed in C?

  • By using the arrow (->) operator
  • By using the dollar sign ($)
  • By using the dot (.) operator
  • By using the exclamation mark (!)
In C, structure members are accessed using the dot (.) operator. This allows you to access the individual fields within a structure.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *