Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

difference between Structure and Union

Status
Not open for further replies.

Arrowspace

Banned
Joined
Jan 23, 2015
Messages
186
Helped
3
Reputation
6
Reaction score
3
Trophy points
18
Activity points
0
what is difference between Structure and Union in C programming ?
 

A structure is a collection of individual elements held under one name. Each element has it's own storage address within the structure.
A union is a collection of individual elements held under one name that share the same storage. In other words the elements overlap and changing one will make the values of other elements change as well.

Brian.
 
What is difference between Class and union.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top