So let's we have a good topic.
Find us, which is the most amazing feature of C++ by most hated feature of C++, which is by hated
by a lot of students because it's more kind of creativity.
They feel very difficult to understand the concept of blindness, but in this course, we will be seeing
blindness in a very easy and understandable manner.
Let's jump to next to blindness.
So you know this already every variable e-SIM memory, location and every memory location as its address
defined, which can be accessed using Ampersand.
Operator This island is called Ampersand Operator, which denotes said addressing the memory.
So we do have a lot of variables when we create a variable by variable.
Let me get that lined up for you, and Carla is currently right.
I'm going to wait.
Suppose we will create a declaration like this index.
OK, what happens in the background when we define axis like inside the memory of computer, which is
our primary memory of the computer like run right?
Random access memory as Bayes will be created for this particular variable called X.
OK.
And this is going to be called X, and it will be a position in the memory.
OK, so memory is always like kind of a warning against same storage unit in that computer, like a
single cell in Excel that have a lot of cells in that memory.
OK, electronic sense, right?
Electronic sets in the memory business store the value, which we suppose if I am leaving ICSI or to
index equal to five, then a memory will be created for storing the variable X and it will have our
debt.
That memory will have an address.
Suppose if that person, you know, a person that was in Atlanta, similarly a memory which is located
in a computer and address with that address only you may be able to access that memory.
So suppose this address is five thousand.
So it will be a numeric number and I find your money string that can be the address marked for the easiness
for the sake of an X somewhere.
I am taking the address of this memory has 5000 and naming that memory as X.
It will also store the indigent data type because that kind of memory will be created inside that primary
memory of the computer.
And if I am giving a secret of.
What happens is this memory allocation will contain the value file.
I think you have understood this concept, right?
So each and every variable we create in a computer will be associated with that memory, and that memory
will have an address and name and a Typekit.
And suppose if I want to access this file number five, right, I have two ways.
One, ways like statically assessing that wherever x because X stands for file.
OK.
When you ask the computer for X, it will fetch five and give it back to you, right?
That is one way.
Another way of getting five is for like that does buy it.
So instead of getting exactly, you can use that prospects to get the value file.
Suppose I want to get the value from the Access Memory 5000, so I will be giving that address off x
OK.
It will be like five thousand will get off x.
That will also fetch me the same value.
Five Because X is the Alias X's distinct name given for this 5000 X.
Actually, that data is stored in the value five thousand.
So even if you run forensics, or even if you would reference five thousand, you will be getting the
same value file, which will be stored in that location.
So that kind of thing that this address is for that point.
OK.
So in order to access the press up everywhere, we use this operator, Ga Amberson.
And if I want to access the variable, I will use the variable name.
If I want to access that, I press off that variable.
I will be getting Amberson symbol.
OK.
This is very simple topic, but often confused in many ways.
So what will be the value of X X?
Will we fight?
What will be the value of Amberson X and Busan X means I trust X and it will be fine.
And by modeling, last thing you have to know, suppose I have the address of X and I need to get that
value of X on that address, right?
Then you use an operator.
Can't start opening at the start of this address means OK.
Start off 5000 means fire, which means the value in, say, d 5000 is now.
Let's see, point us in action so that we will understand this concept a little bit more.
So I will jump to the demo.
Let's jump to Visual Studio four.
So I have a smaller program repeated a four point bind us.
So behind us are variables which.
Actually stored the actress off their support, I wanted to store the actress.
Let me go back to the slide again so you can get this point clear.
Let me get the pen.
It's right.
So similarly, the is I have already defined that example let go with that next summer.
So that is a memory allocation in computer and it's addresses 5000 and its name is X and it started
the value seven.
OK.
So Ambas Index, if we are writing Amberson X, it will mean five thousand.
So if I want to store the address of the meeting room, I need to create X separate media for that.
So that variable is going down.
So I'm creating a variable star BTR distorted address topics so start to be Dyadic or to send off X.
If I am printing start media right now, I will get five thousand.
OK, so start to be defined.
There is a variable which will store the address of another medium.
So like any variable I can send you, you must declare that lined up before you work with it, so you
have to address declarer point.
Suppose we have lined up which can store that does off an integer variable.
Then that point should be like declare like this int start b d x dad will make a deadline.
So non what do you mean?
Declare a variable like this index?
And if I want to start a variable that stores are transfixed, then I have to declare a pointer and
appoint a declaration.
We have this stock symbol.
So type star variable name type is the point US based type.
It must be valid C++ type and then it should be managed by the declaration examiners who can see or
hear in start IP numbers that the be flawed stop FP and Stop C. It's to start C.
It's these are some examples of these things are actually act as a pointer to it.
OK, so you have to know that Bayes Type R, so that's one thing you have to do.