Using no pointer, so a pointer could point to anywhere in the memory installed on your computer.
So and then assignment that the reference pointer means that you could potentially write over since
the memory used by operating systems so or write memory used by hardware on your machine.
However, the operating systems will usually give an executable a specific memory range that it can
access, and it tends to access memory.
And if it attempts to access memory out of this range, it will cause an operating system memory access
violation.
So for this reason, you should almost always obtain pointer values using the end operator here or from
a call to an operating system function.
So you should not give a pointer, an absolute address.
The only exception to this is the C++ constant for invalid memory address.
No TR here.
So for example, let's define the point here.
Let's define the P pointer here and assign it as new beta.
Here you add the code and integer A 62.
And then assign p.
R a variable, a integer variable here and called here as well.
For example, just an example code.
We won't write it in this lecture here.
So if our new Peter not equals to P, then.
See out STD.
Here.
See out here.
And.
P list asterisk here and and here.
So this code.
Initialize the pointer pointer P to null Peter.
We get an error here and line.
Yes.
So this code initialized p to new Peter later in the code.
The pointer is initialized to the address of an integer variable.
So still later in the code, the pointer is used by the rather than calling it immediately.
So the pointer is first check to ensure that it has been initialized to a non null value.
So the compiler will check to see if we are able to use a variable that has not been initialized.
But if you're writing library code, the compiler will not know whether the colors of your code will
use pointers correctly.
So the type here type of constant.
No, Peter is not an integer.
It is here sdd.
No p t r t variable, so all pointers type can be implicitly converted to this type.
So no p t r can be used to initialize variables of all pointer types.