. (direct Member Selector)

From RAD Studio
Jump to: navigation, search

Go Up to Postfix Expression Operators Index

Syntax

postfix_expression.identifier

postfix_expression must be of type union or structure.

identifier must be the name of a member of that structure or union type.

Remarks

Use the selection operator (.) to access structure and union members.

Suppose that the object s is of struct type S and sptr is a pointer to S. Then, if m is a member identifier of type M declared in S, this expression:

s.m

are of type M, and represent the member object m in s.