About 145,000 results
Open links in new tab
  1. C Structures (structs) - W3Schools

    Structures Structures (also called structs) are a way to group several related variables into one place. Each variable in the structure is known as a member of the structure. Unlike an array, a structure can …

  2. struct (C programming language) - Wikipedia

    In the C programming language, struct (referring to a structure) is the keyword used to define a composite, a.k.a. record, data type – a named set of values that occupy a block of memory. It allows …

  3. Struct declaration - cppreference.com

    Struct declaration A struct is a type consisting of a sequence of members whose storage is allocated in an ordered sequence (as opposed to union, which is a type consisting of a sequence of members …

  4. C Structures - GeeksforGeeks

    Apr 8, 2026 · In C, a structure is a user-defined data type that can be used to group items of possibly different types into a single type. The struct keyword is used to define a structure. The items in the …

  5. C structs and Pointers (With Examples) - Programiz

    In this tutorial, you'll learn to use pointers to access members of structs. You will also learn to dynamically allocate memory of struct types with the help of examples.

  6. Struct and union initialization - cppreference.com

    When initializing an object of struct or union type, the initializer must be a non-empty,(until C23) brace-enclosed, comma-separated list of initializers for the members: ... where the designator is a …

  7. Struct declaration - cppreference.net

    Struct declaration A struct is a type consisting of a sequence of members whose storage is allocated in an ordered sequence (as opposed to union, which is a type consisting of a sequence of members …

  8. The Ultimate Guide to Structs in C: From Beginner to Pro

    May 2, 2025 · What You’ll Learn Basics: How to define, initialize, and use structs. Intermediate: Pointers, nested structs, and arrays. Advanced: Memory management, inheritance ...

  9. C struct (Structures) - Programiz

    In this tutorial, you'll learn about struct types in C Programming. You will learn to define and use structures with the help of examples. In C programming, a struct (or structure) is a collection of …

  10. 13.7 — Introduction to structs, members, and member selection

    Oct 4, 2024 · A struct (short for structure) is a program-defined data type (13.1 -- Introduction to program-defined (user-defined) types) that allows us to bundle multiple variables together into a …