AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: getStructNumMembers

getStructNumMembers(str) returns the number of members of the structure str.

Example:

createStruct("firstName", "Andreas", "lastName", "Rejbrand", "yearOfBirth", 1987, "IQ", ∞)

firstName: Andreas
lastName: Rejbrand
yearOfBirth: 1987
IQ: ∞

getStructNumMembers(ans) = 4