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
What is going on, guys?
I mean, this video, what I want to talk about before we move on to the next video, to the next exercise,
the next challenge that we are about to do, I want us to talk about how to use Boulle data types,
so how to use Bolian data types.
So similarly to the jurors double's floating point Char's and so on, which every one of them represents
different data types.
We also have a bool data type that its values are either true or false.
So just like you had a floating point, number four, for example, I don't know, three point fourteen
or any other floating point number.
And you also had the jurors, which had simply a broader range of values.
We also have a bull data type, which can be either true or false.
OK, it is very useful and very efficient.
Instead of using like, let's say, a double variable to hold either one or zero.
And it consumes a lot of more and a lot more memory.
We can use a bull for situations where we know that the status of the value inside the variable should
be either a true or false.
Just two options.
OK, that's something that you will encounter a lot in your programming career.
And there are a couple of a couple of ways to do so.
While in other programming languages it is already builtin.
But there are there are basically two options that I think I should mention right now, although there
are also additional options, at least three or four or even five other options to use booleans in our
C programming language.
But two of them I will show you right now.
So the first one goes like this and you should include additional, let's say, additional library.
And it's called include include what should we include?
We should include SD Bulle SD and just search for Buhle standard boolean dot header.
And now if you would like to create some boolean variable.
OK, so let's say you would like to create a boolean variable.
Bool still raining.
OK, still raining and put it put its value to be true.
OK and you simply created a variable of a boolean type with the value of true and you will simply,
you may simply use something like that.
So while it is still raining, OK, while these, these are result here is true then in this case let's
just use print.
If it is still raining, it's still raining.
Rain, rain, rain.
OK, something like that.
So and this iteration will run as long as I don't know, as long as some condition happen.
So when these conditions of still raining will be equal to falls.
OK, this loop, this while loop will be over and then you will stop the execution.
So once you're out, let's say printf.
Oh, it's stopped.
It's stopped raining.
Finally a sunny day.
OK, so very simple.
That's option number one to use the booleans.
The simply include the SDD bool standard Bildad header and the other option would be to use to use an
enum.
OK, I don't remember if we talked about it about it at this point, but I think I can simply write
it down to you that you will be able to know another way of using Boolean.
So it goes like this typedef that we definitely spoke of ENUM and then we write two options.
So false and through these are two options for our Bulle.
OK, so that's how you do it.
That's how you can use another option of using booleans and don't get afraid of these body if you are
not familiar with it.
We already talked about it or we will talk about it in the future.
Let me know if you have any questions about it.
And basically now you know how to use two options of booleans in our or C programming language and you
are ready to move on to the next exercises.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.