All language subtitles for 5. Challenge 1 - Solution

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
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

Original subtitles

So let's initialize or two grades.

So in grade one equals two 80 and grade two equals to a hundred.

OK.

So for example, if you have taken your first exam and got 80 and then you learned more and studied

more and you got a hundred, and you're a second chance.

And now what we want to do is that we know that these two grades, these two variables are just like

boxes and they are stored somewhere.

Right.

This is grade, yanno?

Right at the.

And these variables are stored somewhere and they hold some value.

This one holds 80 and the second one holds a hundred.

So what we want to do now is we want to bring the euro values and we know how to do it.

We simply use print out.

So print F grades, grades one, grades one value equals two percentage D..

And if we want to grade one.

And we if we will also want to do the same for grade two, we just modify it here.

Grade two and grades to grade do.

Grade two and grade one.

So we can bring their value.

And what we will see on the screen is simply grade one value equals to 80 and grade two value equals

to a hundred.

But what we learn this section is how to work with point terrorists and how to work with different addresses.

Because we know that a pointer is just a variable that has that contains a an address of some other

variable and allows us an indirect access to it.

So the first step that we need to understand is even how to print the actual kind of actual address

of this are variable that we've created here.

Grade one and grade two.

So we will do something like this.

Grade one address.

OK.

Address.

It's the actual address where it resides in the memory of your computer.

We'll be equals two percentage.

OK.

This will specify the address.

And we just use something like this.

Is this correct?

What do you think?

We'll be printed to the screen now.

We'll be printed of the value or the address.

Meaning we we've seen here in line eight that when we use our print f like this and we specify grade

one, we are simply going to get the value inside of this variable.

And that's not something that we want here.

We want the address.

And we we know that if we want to get the address of a variable, we just specify these ampersand guy.

So now if we are going to run this program, we will see that it's assigned to this value of grade one.

We also have the address of grade one, which is this kind of number so that you can see on the screen.

We will not go into it and into the hexadecimal representation of this address.

So simply know that you can print the address of a variable by specifying this percentage B and the

ampersand of these variable that specifies where which resides in your computer's memory.

So the same we can do also in this line and specify grade two and grade two.

And we will print these out.

And we will also make sure that the the address of both of these variables, you can see it's not the

same.

Right.

Because these two boxes are stored in different places.

They cannot be in the same address.

Otherwise, you will not be able to distinguish between them.

So that's basically it.

This is pretty much r an easy challenge just to demonstrate how to work.

And what is the difference between values and addresses of pretty much simple variables.

You can do also the same for variables of type, float of type char and so on.

The addresses will be printed out in the similar way and the only thing that will change is these percentages

before the value.

So it will be for a chance for a char percentage C or for flooring points F or a double L, F and so

on.

So I think you've got the idea of how to access each value of any variable in how to print its address.

So this is it for these video, guys.

Thank you so much for watching.

You are doing great.

We proceed with the material on the in the next video.

We are going to proceed with some more explanation about pointers and about an address and how to work

with them.

So it's going to be a lot of fun.

So I'll see you there.

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