Mask-group

Features of Structures



  • The values of a structure variable can be assigned to another structure variable of the same type using the assignment operator.

  • One structure can be nested within another structure.

  • Like an ordinary variable, a structure variable can also be passed to a function. We may either pass individual structure elements or the entire structure variable at one go.

  • The way we can have a pointer pointing to an int, or a pointer pointing to a char, similarly we can have a pointer pointing to a struct. Such pointers are known as ‘structure pointers’.