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
What was noalias and what ever happened to it?
What is #include stdio h and #include conio h?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
What is the significance of an algorithm to C programming?
What is a method in c?
Differentiate between a structure and a union.
What is %d called in c?
What are Macros? What are its advantages and disadvantages?
What are the disadvantages of external storage class?
Explain that why C is procedural?
What is the difference between int main and void main?
What is scanf_s in c?
What is the size of array float a(10)?
What are types of structure?
what are # pragma staments?