Go to the first, previous, next, last section, table of contents.

### structure definition

A structure data type is a fixed length array and each component of the array is accessed by its name. Each type of structure is distinguished by its name. A structure data type is declared by `struct` statement. A structure object is generated by a builtin function `newstruct`. Each member of a structure is accessed by an operatator `->`. If a member of a structure is again a structure, then the specification by `->` can be nested.

    [1] struct rat {num,denom};
    0
    [2] A = newstruct(rat);
    {0,0}
    [3] A->num = 1;
    1
    [4] A->den = 2;
    2
    [5] A;
    {1,2}

Go to the first, previous, next, last section, table of contents.