English Reference

Word

struct

Definition

n. a way to group different pieces of data together in computer programming. It lets you treat several related items, like a name and an age, as one single object.

n. a composite data type declaration that defines a physically grouped list of variables under one name in memory. Typically used in languages like C and C++ to create complex data structures that represent a single entity.

Examples

“The programmer defined a struct to store the user's coordinates.”

“By using a struct to hold the player's health and position, the code became much easier to read and maintain.”

“Efficient memory management often relies on defining a struct that aligns data members to minimize padding, especially when passing large amounts of information between functions in low-level systems programming.”

Examples

simple

“The programmer defined a struct to store the user's coordinates.”

contextual

“By using a struct to hold the player's health and position, the code became much easier to read and maintain.”

complex

“Efficient memory management often relies on defining a struct that aligns data members to minimize padding, especially when passing large amounts of information between functions in low-level systems programming.”

Usage

Commonly used in C-family programming languages; often contrasted with 'class' in object-oriented contexts.

Domains

ComputingProgramming

This entry

Exam level
CambridgeCambridgeCambridge English QualificationsThe exam suite from Cambridge University Press & Assessment, from A1 Movers up to C2 Proficiency. The benchmark names double as CEFR labels.C1 AdvancedIELTSIELTSInternational English Language Testing SystemThe 0–9 band test co-owned by the British Council, IDP, and Cambridge. Used for university entry, work, and migration.7.0–8.0TOEFL iBTTOEFL iBTTest of English as a Foreign Language, Internet-Based TestETS's academic English test, the standard route for US university admissions. Scored 0–120, with a 1–6 scale since 2026.1–6 scale: 5.0–5.595–113TOEICTOEICTest of English for International CommunicationETS's workplace English test, big in Japan and Korea. Listening & Reading scores 10–990 and tops out at C1.945–990
Frequency
Occasional
Level
C1 · Advanced
Updated

QR code

englishreference.com/q/struct

English Reference