Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
All right, welcome to our amazing programming course.
In this video, we are going to talk about something new that we probably haven't spoken of so far.
And this topic is called Unions'.
OK, not only guns, but unions.
We are going to talk about what are unions, how they should be used, how to create unions, how to
access its members, and basically a lot of things that cover this topic to the fullest.
And the reason as to why I'm talking about unions just now is because they are usually being taught
together or at least one after the other with the structures topic.
That's because they are quite similar.
But still, of course, there are differences which will be discussed in this section.
So there is a couple of useful situations where unions can and should be used, especially for those
of you guys who are planning to proceed even further with your career and to work in the embedded industry.
OK, so simply saying it may come really handy when you are going to work with memory mapped registers
to communicate with different peripherals.
But more on that.
Not at the moment.
Not right now.
For now, we'll just focus on understanding the basics and the usage of unions.
Awesome.
So basically saying, what is a union, OK, so that's the first question, what is a union?
What is the union?
First of all, a union is a user defined data type of game.
So first of all, that's some user defined.
OK, let's do it like this.
First of all, that's a user defined data type.
OK, and we already know basically what it means are similar to how we defined the structures.
Second, what we can also say about unions is that it's basically it's basically a collection of elements
of variables that may be also of different types.
And they are kind of being held in the same region in the memory.
OK, so the second phrase will be like a SADE'S or basically a collection of elements or variables or
variables.
Right.
Variables that are kind of being held kind kind of being held in the same region in the memory.
OK, and that's very important.
We will talk about it in more depth because the second the second answer to what is a union is very,
very important.
And it will be like it will be with us for most of these video and for most of the discussion about
unions.
OK, so don't worry about that.
We will cover also this part and we'll also talk about what is how to use unions, how to create them.
And also we will talk about the differences between unions and structures as well as their similarities.
And before we proceed, basically, if you will, take a look at this answer, what is the union?
Of course.
There are also other explanations that can be used for unions, but I think that's enough for the start.
Okay, that's enough to get ourselves started.
And yeah, that's basically all about it for the general introduction for unions straight and for and
straightforward, simple and straightforward.
And now let us proceed.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.