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

    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 contain many …

  2. struct (C programming language) - Wikipedia

    In the C programming language, struct 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 for the different values to be …

  3. C Structures - GeeksforGeeks

    Oct 25, 2025 · 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 …

  4. C struct (Structures) - Programiz

    To define a struct, the struct keyword is used. dataType member1; dataType member2; ... For example, int citNo; float salary; Here, a derived type struct Person is defined. Now, you can create variables of …

  5. Struct declaration - cppreference.com

    Jan 6, 2024 · Within a struct object, addresses of its elements (and the addresses of the bit-field allocation units) increase in order in which the members were defined. A pointer to a struct can be …

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

    May 2, 2025 · If you’re diving into C programming, you’ll soon discover that structs (short for structures) are one of the most powerful tools in your toolkit. They let you bundle related data into a single...

  7. Understanding struct in C: A Beginner-Friendly Guide

    May 14, 2025 · When learning C programming, you’ll eventually come across the keyword struct. If you're confused about what it does or how to use it, you're not alone—many beginners feel the same …