What is the difference between struct and union in C?
Answer Posted / hrpynux@gmail.com
A struct is a block of memory that stores several data objects, where those objects don't overlap. A union is a block of memory that stores several data objects, but has only storage for the largest of these, and thus can only store one of the data objects at any one time.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to declare a variable?
Are c and c++ the same?
What does d mean?
What is pragma c?
What does != Mean in c?
What's a good way to check for "close enough" floating-point equality?
What does the c in ctime mean?
What is volatile variable in c with example?
Is void a keyword in c?
How do you define a function?
How many identifiers are there in c?
What is the stack in c?
What is I ++ in c programming?
What are the parts of c program?
I need previous papers of CSC.......plz help out by posting them.......