All language subtitles for 2. Introduction to Strings in C!

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian Download
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,360 --> 00:00:06,150 Welcome back, ladies and gentlemen, and in this video, we are going to talk about string's in our 2 00:00:06,210 --> 00:00:14,220 C programming language, and to do so, we are going to, first of all, recall the array's topic we 3 00:00:14,220 --> 00:00:15,180 loved so much. 4 00:00:15,180 --> 00:00:20,950 Right, because there is so much similarity between this topic and this Thring Stoppie. 5 00:00:20,980 --> 00:00:23,340 We're about to learn in this section. 6 00:00:23,580 --> 00:00:29,940 And just to make sure that you're aligned with the material regarding a race, let's see how we would 7 00:00:29,940 --> 00:00:32,970 have created an array of integers. 8 00:00:33,120 --> 00:00:39,870 So if we wanted to create an array of in the jurors, we would simply do something like this in a ARAA 9 00:00:40,200 --> 00:00:48,180 and use five in these square brackets, which means that we are going to create an array of in the jurors. 10 00:00:48,450 --> 00:00:53,880 And there are will be only five elements in these array in this collection. 11 00:00:54,060 --> 00:00:59,690 We could also initialize reading inputs from the user, for example, by using the scanner function. 12 00:00:59,700 --> 00:01:00,000 Right. 13 00:01:00,510 --> 00:01:05,760 And we can basically do a lot of different things with these elements in disarray. 14 00:01:05,910 --> 00:01:09,490 And we also learned that we can create different types of arrays. 15 00:01:09,510 --> 00:01:16,620 For example, we can create arrays of integers, arrays of floating points, and we can also create 16 00:01:16,620 --> 00:01:18,600 arrays of characters and so on. 17 00:01:18,780 --> 00:01:25,890 There is no problem with creating different types of arrays, especially, of course, there is no problem 18 00:01:25,890 --> 00:01:32,000 to create an array of characters just by using Char and the name of the array of size 10. 19 00:01:32,160 --> 00:01:38,700 And we also remember that ARRL in this case simply represents the name of that given array. 20 00:01:39,210 --> 00:01:45,330 We could also change this name to be BRP Miah or whatever you like. 21 00:01:45,510 --> 00:01:46,490 It doesn't matter. 22 00:01:46,500 --> 00:01:51,000 It's just a name that you will use to access a particular array. 23 00:01:51,090 --> 00:01:56,130 So now, once we've briefly discussed the arrays, let us proceed with the strings. 24 00:01:56,340 --> 00:02:01,190 First of all, let's define what our strings non formally. 25 00:02:01,320 --> 00:02:07,860 Let's say that strings are used to store text words, combination of words, simply some facts that 26 00:02:07,860 --> 00:02:09,510 you may have in your mind. 27 00:02:09,630 --> 00:02:14,910 We've seen what is in the array of characters and how we would have created and defined it. 28 00:02:15,450 --> 00:02:20,850 Now a string is very similar in some way to this array of characters. 29 00:02:21,000 --> 00:02:27,600 So if we want to speak a little bit more formally about our programming language, the C language, 30 00:02:27,930 --> 00:02:35,520 we can say that a string is just like an array of characters with the last element set to backslash 31 00:02:35,520 --> 00:02:37,920 zero, some special type of character. 32 00:02:37,950 --> 00:02:39,120 The null character. 33 00:02:39,210 --> 00:02:42,790 So once again, an array of characters is great. 34 00:02:42,900 --> 00:02:51,390 But if we add a backslash zero character with the end the null character at the end of a given, let's 35 00:02:51,390 --> 00:02:56,610 say, character array, then what we can do is simply treat. 36 00:02:56,610 --> 00:02:58,590 It is a string. 37 00:02:58,710 --> 00:03:00,840 So nothing complicated so far. 38 00:03:00,870 --> 00:03:09,090 Just some formulations and understanding that you have to baring your mind and what it basically means. 39 00:03:09,510 --> 00:03:12,150 It means that the computer will provide us. 40 00:03:12,180 --> 00:03:19,860 We have additional functionality and much more abilities to work with strings as opposed to just working 41 00:03:19,860 --> 00:03:21,510 with a raise of characters. 42 00:03:21,660 --> 00:03:25,050 We will take a look at different examples in the next videos. 43 00:03:25,110 --> 00:03:30,540 So no worries, guys, if something is not clear for a hundred percent to you guys. 44 00:03:30,690 --> 00:03:31,500 Don't worry. 45 00:03:31,560 --> 00:03:38,970 We will cover a lot of it in the next videos and in the challenges and the exercises that we are doing. 46 00:03:39,270 --> 00:03:40,460 Every sections. 47 00:03:41,010 --> 00:03:50,160 So the main thing that I do want you to understand is the fact that a string in C is basically an array 48 00:03:50,160 --> 00:03:55,950 of characters with the last characteristic, with the last character set to the now. 49 00:03:56,070 --> 00:04:02,610 And all of those things are usually known as data types in a lot of other programming languages in C. 50 00:04:02,670 --> 00:04:06,450 That's not the case in our C programming language. 51 00:04:06,780 --> 00:04:09,450 A string is not a native data type. 52 00:04:09,470 --> 00:04:16,050 So keep keep that in mind that it's simply an array of characters with a null character at the end. 53 00:04:16,410 --> 00:04:23,790 And these null character is nothing more than some character as simply as you have character A, B, 54 00:04:23,790 --> 00:04:25,170 C, D and so on. 55 00:04:25,770 --> 00:04:33,130 You also may have this character at the end of the string which specify at the end of the R character 56 00:04:33,140 --> 00:04:33,720 is Zarei. 57 00:04:33,780 --> 00:04:39,070 That specifies that this array may be treated as a string. 58 00:04:39,240 --> 00:04:46,110 So what it will give us if we use strings once we've added the null character to the end of the character 59 00:04:46,110 --> 00:04:46,710 is array. 60 00:04:47,130 --> 00:04:54,180 The computer may treat this array as a string and this may provide more capabilities and functionalities 61 00:04:54,600 --> 00:04:56,970 that we will see now in this section. 62 00:04:57,060 --> 00:04:59,190 So I hope you understood everything from. 63 00:04:59,450 --> 00:05:05,840 Video, what is the difference between an array of characters and A streamed in C programming language? 64 00:05:06,380 --> 00:05:09,800 And we can basically say that this is it for this video. 65 00:05:09,950 --> 00:05:13,010 Take a little break and I'll see you in the next one. 6811

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.