O'Reilly logo

C Primer Plus, Fourth Edition by Stephen Prata

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sign Operators

is the minus sign that reverses the sign of the operand.
+ is the plus sign that leaves the sign unchanged.

Structure and Union Operators

Structures and unions use operators to identify individual members. The membership operator is used with structures and unions, and the indirect membership operator is used with pointers to structures or unions.

The Membership Operator

. is used with a structure or union name to specify a member of that structure or union. If name is the name of a structure and member is a member specified by the structure template, name.member identifies that member of the structure. The type of name.member is the type specified for member. The membership operator can also be used in the same fashion with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required