Different Between Structures and Unions?

1. The key word union is used instead of structure.

2. Single memory space is allocated for all the members.

3. Only one member is accessed any time.

Advantages of unions:

1. Unions are used to save the memory space.

2. Unions are useful to create the structure with variable fields.

Related

Define Entry Controlled Loop & Exit Controlled Loop?

Loop means, A sequence of statements are executed until some conditions for termination of the loop are satisfied. A program loop consists of 2 segments 1. Body of the loop & 2. Control s...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item