I never really got this back in school when I learned C programming and the instructor did a bad job explaining it. What is a union in C really and how do you use it?
complete -2 Junior Poster
Recommended Answers
Jump to PostThe short story is that a union is like a structure except each member shares the memory. The result is that a union takes up less space, but you're also restricted to using a single member at a time.
All 3 Replies
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Narue 5,707 Bad Cop Team Colleague
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.