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
Welcome back, ladies and gentlemen, and in this video, we are going to talk about string's in our
C programming language, and to do so, we are going to, first of all, recall the array's topic we
loved so much.
Right, because there is so much similarity between this topic and this Thring Stoppie.
We're about to learn in this section.
And just to make sure that you're aligned with the material regarding a race, let's see how we would
have created an array of integers.
So if we wanted to create an array of in the jurors, we would simply do something like this in a ARAA
and use five in these square brackets, which means that we are going to create an array of in the jurors.
And there are will be only five elements in these array in this collection.
We could also initialize reading inputs from the user, for example, by using the scanner function.
Right.
And we can basically do a lot of different things with these elements in disarray.
And we also learned that we can create different types of arrays.
For example, we can create arrays of integers, arrays of floating points, and we can also create
arrays of characters and so on.
There is no problem with creating different types of arrays, especially, of course, there is no problem
to create an array of characters just by using Char and the name of the array of size 10.
And we also remember that ARRL in this case simply represents the name of that given array.
We could also change this name to be BRP Miah or whatever you like.
It doesn't matter.
It's just a name that you will use to access a particular array.
So now, once we've briefly discussed the arrays, let us proceed with the strings.
First of all, let's define what our strings non formally.
Let's say that strings are used to store text words, combination of words, simply some facts that
you may have in your mind.
We've seen what is in the array of characters and how we would have created and defined it.
Now a string is very similar in some way to this array of characters.
So if we want to speak a little bit more formally about our programming language, the C language,
we can say that a string is just like an array of characters with the last element set to backslash
zero, some special type of character.
The null character.
So once again, an array of characters is great.
But if we add a backslash zero character with the end the null character at the end of a given, let's
say, character array, then what we can do is simply treat.
It is a string.
So nothing complicated so far.
Just some formulations and understanding that you have to baring your mind and what it basically means.
It means that the computer will provide us.
We have additional functionality and much more abilities to work with strings as opposed to just working
with a raise of characters.
We will take a look at different examples in the next videos.
So no worries, guys, if something is not clear for a hundred percent to you guys.
Don't worry.
We will cover a lot of it in the next videos and in the challenges and the exercises that we are doing.
Every sections.
So the main thing that I do want you to understand is the fact that a string in C is basically an array
of characters with the last characteristic, with the last character set to the now.
And all of those things are usually known as data types in a lot of other programming languages in C.
That's not the case in our C programming language.
A string is not a native data type.
So keep keep that in mind that it's simply an array of characters with a null character at the end.
And these null character is nothing more than some character as simply as you have character A, B,
C, D and so on.
You also may have this character at the end of the string which specify at the end of the R character
is Zarei.
That specifies that this array may be treated as a string.
So what it will give us if we use strings once we've added the null character to the end of the character
is array.
The computer may treat this array as a string and this may provide more capabilities and functionalities
that we will see now in this section.
So I hope you understood everything from.
Video, what is the difference between an array of characters and A streamed in C programming language?
And we can basically say that this is it for this video.
Take a little break and I'll see you in the next one.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.