All language subtitles for 5. Challenge 1 - Solution

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
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
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian Download
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,210 --> 00:00:02,280 So let's initialize or two grades. 2 00:00:02,310 --> 00:00:08,280 So in grade one equals two 80 and grade two equals to a hundred. 3 00:00:08,350 --> 00:00:08,530 OK. 4 00:00:09,240 --> 00:00:15,300 So for example, if you have taken your first exam and got 80 and then you learned more and studied 5 00:00:15,300 --> 00:00:17,760 more and you got a hundred, and you're a second chance. 6 00:00:18,290 --> 00:00:24,900 And now what we want to do is that we know that these two grades, these two variables are just like 7 00:00:24,900 --> 00:00:27,480 boxes and they are stored somewhere. 8 00:00:27,500 --> 00:00:27,810 Right. 9 00:00:28,080 --> 00:00:29,380 This is grade, yanno? 10 00:00:29,390 --> 00:00:30,180 Right at the. 11 00:00:30,690 --> 00:00:34,350 And these variables are stored somewhere and they hold some value. 12 00:00:34,380 --> 00:00:37,410 This one holds 80 and the second one holds a hundred. 13 00:00:37,890 --> 00:00:43,230 So what we want to do now is we want to bring the euro values and we know how to do it. 14 00:00:43,380 --> 00:00:44,740 We simply use print out. 15 00:00:44,820 --> 00:00:51,910 So print F grades, grades one, grades one value equals two percentage D.. 16 00:00:52,470 --> 00:00:55,480 And if we want to grade one. 17 00:00:55,790 --> 00:01:00,360 And we if we will also want to do the same for grade two, we just modify it here. 18 00:01:00,390 --> 00:01:03,280 Grade two and grades to grade do. 19 00:01:03,600 --> 00:01:04,860 Grade two and grade one. 20 00:01:05,460 --> 00:01:07,320 So we can bring their value. 21 00:01:07,330 --> 00:01:14,910 And what we will see on the screen is simply grade one value equals to 80 and grade two value equals 22 00:01:14,910 --> 00:01:15,930 to a hundred. 23 00:01:16,080 --> 00:01:22,140 But what we learn this section is how to work with point terrorists and how to work with different addresses. 24 00:01:22,170 --> 00:01:29,940 Because we know that a pointer is just a variable that has that contains a an address of some other 25 00:01:29,940 --> 00:01:33,780 variable and allows us an indirect access to it. 26 00:01:34,740 --> 00:01:41,880 So the first step that we need to understand is even how to print the actual kind of actual address 27 00:01:42,150 --> 00:01:45,960 of this are variable that we've created here. 28 00:01:46,020 --> 00:01:47,280 Grade one and grade two. 29 00:01:47,550 --> 00:01:49,560 So we will do something like this. 30 00:01:49,620 --> 00:01:51,720 Grade one address. 31 00:01:51,930 --> 00:01:52,170 OK. 32 00:01:52,290 --> 00:01:52,890 Address. 33 00:01:53,010 --> 00:01:57,090 It's the actual address where it resides in the memory of your computer. 34 00:01:57,570 --> 00:01:59,370 We'll be equals two percentage. 35 00:02:00,190 --> 00:02:00,400 OK. 36 00:02:00,480 --> 00:02:01,890 This will specify the address. 37 00:02:02,190 --> 00:02:04,560 And we just use something like this. 38 00:02:04,590 --> 00:02:05,520 Is this correct? 39 00:02:05,670 --> 00:02:06,210 What do you think? 40 00:02:06,210 --> 00:02:07,920 We'll be printed to the screen now. 41 00:02:08,710 --> 00:02:11,970 We'll be printed of the value or the address. 42 00:02:12,450 --> 00:02:20,070 Meaning we we've seen here in line eight that when we use our print f like this and we specify grade 43 00:02:20,070 --> 00:02:25,590 one, we are simply going to get the value inside of this variable. 44 00:02:25,710 --> 00:02:27,810 And that's not something that we want here. 45 00:02:27,810 --> 00:02:28,920 We want the address. 46 00:02:28,950 --> 00:02:36,830 And we we know that if we want to get the address of a variable, we just specify these ampersand guy. 47 00:02:36,990 --> 00:02:43,980 So now if we are going to run this program, we will see that it's assigned to this value of grade one. 48 00:02:44,040 --> 00:02:51,240 We also have the address of grade one, which is this kind of number so that you can see on the screen. 49 00:02:51,240 --> 00:02:57,290 We will not go into it and into the hexadecimal representation of this address. 50 00:02:57,960 --> 00:03:04,500 So simply know that you can print the address of a variable by specifying this percentage B and the 51 00:03:04,500 --> 00:03:11,250 ampersand of these variable that specifies where which resides in your computer's memory. 52 00:03:11,340 --> 00:03:16,940 So the same we can do also in this line and specify grade two and grade two. 53 00:03:16,950 --> 00:03:18,600 And we will print these out. 54 00:03:18,930 --> 00:03:25,980 And we will also make sure that the the address of both of these variables, you can see it's not the 55 00:03:25,980 --> 00:03:26,400 same. 56 00:03:26,410 --> 00:03:26,600 Right. 57 00:03:26,700 --> 00:03:30,630 Because these two boxes are stored in different places. 58 00:03:30,660 --> 00:03:32,790 They cannot be in the same address. 59 00:03:32,820 --> 00:03:35,670 Otherwise, you will not be able to distinguish between them. 60 00:03:35,940 --> 00:03:37,140 So that's basically it. 61 00:03:37,230 --> 00:03:42,420 This is pretty much r an easy challenge just to demonstrate how to work. 62 00:03:42,540 --> 00:03:48,180 And what is the difference between values and addresses of pretty much simple variables. 63 00:03:48,420 --> 00:03:53,490 You can do also the same for variables of type, float of type char and so on. 64 00:03:53,850 --> 00:04:00,000 The addresses will be printed out in the similar way and the only thing that will change is these percentages 65 00:04:00,030 --> 00:04:00,910 before the value. 66 00:04:00,960 --> 00:04:09,150 So it will be for a chance for a char percentage C or for flooring points F or a double L, F and so 67 00:04:09,150 --> 00:04:09,270 on. 68 00:04:09,750 --> 00:04:16,440 So I think you've got the idea of how to access each value of any variable in how to print its address. 69 00:04:17,100 --> 00:04:19,520 So this is it for these video, guys. 70 00:04:19,710 --> 00:04:21,300 Thank you so much for watching. 71 00:04:21,450 --> 00:04:22,650 You are doing great. 72 00:04:22,710 --> 00:04:26,400 We proceed with the material on the in the next video. 73 00:04:26,430 --> 00:04:33,240 We are going to proceed with some more explanation about pointers and about an address and how to work 74 00:04:33,240 --> 00:04:33,810 with them. 75 00:04:34,410 --> 00:04:36,660 So it's going to be a lot of fun. 76 00:04:36,690 --> 00:04:38,580 So I'll see you there. 6830

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