When do I use a union in C or C++, instead of a struct?
Patreon ➤ https://www.patreon.com/jacobsorber
Courses ➤ https://jacobsorber.thinkific.com
Website ➤ https://www.jacobsorber.com
Merch ➤ https://merchonate.com/collections/jacob-sorber
When do I use a union in C or C++, instead of a struct? // Unions are useful, but often overlooked in beginner classes, because we don't use them all that much, and because we can often get by without them. This video talks about unions, how they differ from structs, and when you might want to use a union in your C or C++ programs.
[Affiliate Link]
I use Kite, a free AI coding assistant, that provides better code completions.
https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=jacobsorber&utm_content=description-only
Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.
About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.
More about me and what I do:
https://www.jacobsorber.com
https://people.cs.clemson.edu/~jsorber/
http://persist.cs.clemson.edu/
To Support the Channel:
+ like, subscribe, spread the word
+ contribute via Patreon --- [https://www.patreon.com/jacobsorber]
Source code is also available to Patreon supporters. --- [https://jsorber-youtube-source.herokuapp.com/]
Видео When do I use a union in C or C++, instead of a struct? канала Jacob Sorber
Courses ➤ https://jacobsorber.thinkific.com
Website ➤ https://www.jacobsorber.com
Merch ➤ https://merchonate.com/collections/jacob-sorber
When do I use a union in C or C++, instead of a struct? // Unions are useful, but often overlooked in beginner classes, because we don't use them all that much, and because we can often get by without them. This video talks about unions, how they differ from structs, and when you might want to use a union in your C or C++ programs.
[Affiliate Link]
I use Kite, a free AI coding assistant, that provides better code completions.
https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=jacobsorber&utm_content=description-only
Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.
About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.
More about me and what I do:
https://www.jacobsorber.com
https://people.cs.clemson.edu/~jsorber/
http://persist.cs.clemson.edu/
To Support the Channel:
+ like, subscribe, spread the word
+ contribute via Patreon --- [https://www.patreon.com/jacobsorber]
Source code is also available to Patreon supporters. --- [https://jsorber-youtube-source.herokuapp.com/]
Видео When do I use a union in C or C++, instead of a struct? канала Jacob Sorber
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Make your Data Type more Abstract with Opaque Types in C](https://i.ytimg.com/vi/TsUOhPsZk6k/default.jpg)
![Back To Basics: C++ Containers](https://i.ytimg.com/vi/6OoSgY6NVVk/default.jpg)
![Defining Constants. Should I use CONST or #DEFINE?](https://i.ytimg.com/vi/ZIhy4uy5uJM/default.jpg)
![Why do programmers use hexadecimal numbers?](https://i.ytimg.com/vi/dPxCGlW9lfM/default.jpg)
![Understanding and implementing a Hash Table (in C)](https://i.ytimg.com/vi/2Ti5yvumFTU/default.jpg)
![](https://i.ytimg.com/vi/TyvWflc_J5Q/default.jpg)
![Lambdas in C++](https://i.ytimg.com/vi/mWgmBBz0y8c/default.jpg)
![](https://i.ytimg.com/vi/Bg4cZMPBKDE/default.jpg)
![Header Issues: Guards, Name Mangling, and extern "C"](https://i.ytimg.com/vi/NeOTr0u7ALk/default.jpg)
![The Inline Keyword in C.](https://i.ytimg.com/vi/t6Jfrmdg5rk/default.jpg)
![What is a semaphore? How do they work? (Example in C)](https://i.ytimg.com/vi/ukM_zzrIeXs/default.jpg)
![How different are C and C++? Can I still say C/C++?](https://i.ytimg.com/vi/Kq8m980JEeg/default.jpg)
![What are unions in C?](https://i.ytimg.com/vi/BFDUeEVxUok/default.jpg)
![Reinvent The Wheel (Programming Project Advice)](https://i.ytimg.com/vi/IDE--6n-Qeo/default.jpg)
![Why are Progress Bars Always Wrong? Progress Bar Example in C.](https://i.ytimg.com/vi/t_vM_8TLjFE/default.jpg)
![What Actually is Embedded C/C++? Is it different from C/C++?](https://i.ytimg.com/vi/KQBBWvY-s0o/default.jpg)
![Unions in C++](https://i.ytimg.com/vi/6uqU9Y578n4/default.jpg)
![Structs (Structures) in C - An Introductory Tutorial on typedefs, struct pointers, & arrow operator](https://i.ytimg.com/vi/qqtmtuedaBM/default.jpg)
![How do I make multiple concurrent progress bars in the terminal? (tutorial in C)](https://i.ytimg.com/vi/ayfCxgVStdQ/default.jpg)
![Issues with the pre- and postincrement operator in C, C++, etc.](https://i.ytimg.com/vi/Z4r4qJx9yds/default.jpg)