How to use ‘union’ in C? via /r/learnprogramming


How to use ‘union’ in C?

I have just learnt about it today from:

http://ift.tt/2v0a1kQ

So when and how to use union in C?

And what are the advantages over using a union instead of struct?

Edit: is it simply a way to assign dynamic types to a variable?

Submitted July 09, 2017 at 10:21PM by bubugugu
via reddit http://ift.tt/2uH721o

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s