Structure and Union

S

Sami A. Shabah

Hi,
I'm a student of Mechanical Engineering at IUT. I have the following
question:

What is the basic difference between Structure and Union?

Any reply will be appreciated.

Sami a. Shabah
MCE,IUT,St. no:091402
 
G

gpietsch

The comp.lang.c Oracle has pondered your question deeply.

The question was:
What is the basic difference between Structure and Union?

And thus spake the Oracle:

A structure is a type consisting of a sequence of members whose
storage is allocated in an ordered sequence, and a union is a type
consisting of a sequence of members whose storage overlap.

You owe the Oracle an explanation of why interviewers ask what
encapsulation means.

Gregory Pietsch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

C programming 12
Turbo C 1
Structures 0
Turbo C 10
Turbo C 8
Turbo C 1
Turbo C 0
Turbo c 1

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top