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