Definition, synonyms and related words
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.
"The developer chose to struct the employee records to pass them efficiently by value across multiple network threads without incurring heavy memory overhead from pointers."
In plain English: A struct is a custom-made container that lets you group different types of data together into a single unit.
"The structural integrity of the old bridge was questioned after the storm."
Usage: Use the noun struct specifically in computer programming to describe a simple data type that groups related variables without including functions. Distinguish it from classes by noting that structs typically contain only data fields rather than associated methods.
The word struct is an abbreviation for structure that was adopted into English from the C programming language. It serves as a fundamental keyword used to define custom data types within computer code.