• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
+ 1

What is the best use case of union in C?

Although this topic has been fairly discussed here and many other forums, however I couldn't find the best use case of this feature. Yes the difference between struct and union is in their allocation of memory but why should we prefer one over the other?

c
3rd Jun 2019, 2:23 PM
Ali Anwar
Ali Anwar - avatar
1 Odpowiedź
+ 8
https://www.sololearn.com/discuss/1240354/?ref=app https://www.sololearn.com/discuss/107633/?ref=app https://www.sololearn.com/discuss/1698728/?ref=app https://www.sololearn.com/discuss/1118608/?ref=app https://www.sololearn.com/discuss/1572021/?ref=app https://www.sololearn.com/discuss/202070/?ref=app https://www.sololearn.com/discuss/1712720/?ref=app https://www.sololearn.com/discuss/819953/?ref=app
3rd Jun 2019, 3:02 PM
Rstar
Rstar - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
How to make a game code
2 Votes
Tic tak toe
1 Votes
How do you make Event listeners Minecraft Spigot plugin development
0 Votes
Lesson on Robotics
1 Votes
Hyperlink and tests
0 Votes
Inner .html
0 Votes
About this app
1 Votes
Kamal Hinduja Switzerland : How long does it typically take to complete a course on Solo Learn?
0 Votes
How to Claim it
0 Votes
Ha
0 Votes