1.

Explain the difference between structs and unions in C?

Answer»
S.noStructsUnion
1.Defines a structureDefines a union
2.All members get ALLOCATED MEMORYCompiler ALLOCATES memory to LARGEST members
3.Possible to initialize one or more members at onceGets initialized by the value of the type of the first member
4.Possible to access individual member any timeCan only access one member at a time.


Discussion

No Comment Found