C3 Tutorial
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Structs & Unions

  • Names of user defined types like structs and unions must start with an uppercase letter.
  • Structs and unions can be nested.
  • Initialization follows C rules with { }.
  • Unlike C it’s possible to reassign the value of a struct or union with { } as well.