Hey, guys, what's up?
So today we are going to cover a new topic called Friends Variables.
Defense, reliables.
So when we write and a question.
So what will happen?
I will get a box of size for bites.
Its name is A and it's Ray Lewis then.
So when I date and X equals A, what will happen?
I will get a box of size four bytes.
The name of this Boggs's X and the value is then basically copy the video fee and do X.
OK.
So what will that fence, what it will it will do then at eight and equals 10 again.
I will get Eyeborgs.
The name of this box is a.
And the value is ten.
Now I will write and ampersand X equals eight.
So what will happen?
X. So basically the name of this box is X also so.
So this is called a reference variable.
So we're defense variable.
Does is it makes nickname.
OK.
So the original aim of this box was a..
Now it's a nickname is X.
OK.
So X will not be allocated any new memory.
This is wrong.
Excellent point towards this.
OK.
So this box now has two names, E and X.
For example, if I had eight X plus plus.
And now if I write and print the value of a..
So what would be my output.
Mild but will be eleven.
Why.
Because this value will be changed.
It will become eleven.
OK.
Similarly, you can also do you can write and you can make as many as an eventually label as you want.
So and ampersand, why is it so now?
This box containing eleven has two names, E, X and Y.
So if I do Y plasmas.
And now if I try and print the value of a wider loom output, Marbut will be well.
So this value is changed.
This is Gwen.
So the French will label create nickname.
OK.
So you know the difference between and exit quinsy and end and person X equals.
So these two are very different things.
So here the video face copied into X and here X is nickname of variable E.
OK, here, the X created I here, the axis given a separate box, whereas Xindi mortara seem.
So let's write code.
So let's name this file as a reference.
Variables, not CVB.
Now, let us create a variable A which is initially then and I have a variable Y equals a..
Now, let's say there does make a reference variable.
So end ampersand X equals a..
So let's create one mode defense variable.
So end ampersand Z and ampersand Z equals a..
So ablest plus explicit plus vibe.
Lisbeth's z plus plus.
And now let us print values.
So C out a.
Ex.
Ray.
And Z.
OK.
So tell me where to live my output.
Take out your pen and paper.
Diatom this chord on your paper.
And tell me where to live.
Output.
OK.
You can post a video here.
So let's see where the loom output.
So in question, this line means create a bug's.
The name of this box is a and the value is then second-line copy the value of it and do way.
So create a new box.
The name of this box is way and the value is then.
Now, line number nine, make nickname.
So name of this box is X.
Make another nickname, so name of this box is also Z ableist, plus make you deliver an X plus, plus
make it twin.
Wyplosz plus sorry, Wyplosz, plus make it eleven.
That plus plus make it Dean.
OK, so CRT, which is Hardeen see out X, which is Tartine, see Holdway, which is eleven C outside,
which is Tabin.
So this should be my output.
OK.
Today.
Eleven, thirteen.
Let's see whether my body's cracked or not.
So 13, 13, 11 and 13.
OK.
So this was my output and my output is correct.
OK, guys.
So this was all about defense variables.
Thank you.