Ugenz Academy/Tutorial

Structures and Unions in C

Learn user-defined data types in C, including structure and union declaration, initialization, member access, memory allocation, and differences.

1 min read93 words

Reading progress

Keep learning

Structures and Unions in C

Structures and unions are user-defined data types in C that allow programmers to group multiple data members under a single name.

This section explains how structures and unions work, how their members are accessed, and how their memory allocation differs.

Topics Covered

  • Introduction to structures
  • Structure declaration and initialization
  • Accessing structure members
  • Array of structures
  • Nested structures
  • Structure size using sizeof
  • Introduction to unions
  • Union declaration and initialization
  • Accessing union members
  • Difference between structure and union

Keep learning. Keep building. Keep growing.

© 2026 Ugenz Academy