Structures and unions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vensriram
    New Member
    • Aug 2010
    • 48

    #1

    Structures and unions

    When an automatic structure is partially initialised, the remaining variables are initialised to 0.
    Whether the same applies to UNION
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    A union does not have separate variables for its members. It's one piece of memory large enough to hold the largest member.

    There's no way top initialize this.

    Comment

    Working...