• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
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 Resposta
+ 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

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Guys I don't know anything about cooding who can help me pls
1 Votes
Decorators in python.
2 Votes
Coding for Cybersecurity
1 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
Salut tout le monde
1 Votes
Please click me
0 Votes
How can i isntall modules
1 Votes
Unity's loading time?
4 Votes