Hi every one..I am new to programming..Can any one tell me the difference between structures and unions in C
Printable View
Hi every one..I am new to programming..Can any one tell me the difference between structures and unions in C
Search the Web concerning C structs and unions. Should you still have questions, come back here to pose a specific question for clarification.
Unions do one or the other structures do all. Structures allocate memory for the largest possible. Unions are useful when it's an either or. Both are accessed the same way, but as laserlight said Google is the answer.