struct

Hello, you have come here looking for the meaning of the word struct. In DICTIOUS you will not only get to know all the dictionary meanings for the word struct, but we will also tell you about its etymology, its characteristics and you will know how to say struct in singular and plural. Everything you need to know about the word struct you have here. The definition of the word struct will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofstruct, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

English

Etymology

Abbreviation of structure, used as a keyword in the C programming language and its descendants.

Noun

struct (plural structs)

  1. (computing, programming) A data structure, especially one that serves to group a number of fields (in contrast to an object-oriented class with methods) or one that is passed by value rather than by reference.
    • 2005, Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones, Professional C# 2005, John Wiley & Sons, →ISBN, page 103:
      Note that because structs are value types, the new operator does not work in the same way as it does for classes and other reference types.
    • 2015, Michael Dippery, Professional Swift, John Wiley & Sons, →ISBN, page 62:
      Like most object-oriented languages, including Objective-C, Swift supports two basic object-oriented data structures: classes and structs.

Synonyms

Translations

Further reading