Hi guys.
Welcome back.
Indistinct cordial will learn about point dancing and C programming language.
Okay.
Your pointer is a variable the stored status of under the variable.
Unlike other variables that holds values of a particular data point and holds the address of a variable.
So this very important point that holds the address of a variable for example an integer variable holds
an integer value but an integer pointer holds the address of an Integer variable for example into namespace
equal to do so if you see here num is nothing but a very big name.
Two is the value of num two is the value of num but Amberson num which contains the address for example
it can be stored in this particular address or any other address which should as he come by the desired
sanctuary.
OK so here again every putting in digits that embedded a Type Num is a very big name and 2 z value.
So this num variable will still will hold the value of to 2 but Ampersand num bill contains the address
of number 3 the pointer syntax for declaration.
Okay so you can mention as in Star space B semicolon.
OK in this nothing with the type on the star and the space you had to put BP is nothing but variable.
OK you can also declare the point is in this V in a derivative space start B 1 and in space start B2
and semicolon.
Okay make sure that the semicolon and this pointer this strike is represented okay.
This is the basic syntax for the declaration as a pointer.
OK so now we will learn how to assign address to the pointers.
Does the declaration for the pointer DMD the especial variable.
No.
Is it genetic with the pointer variable who is an assigned to the C variable and address of C assigned
to the pointer variable if it is busy.
Okay.
Get him repeating this is the pointer declaration.
P.S. And that too is assigned to very record C and the address of C's assigned to the pointer variable.
Okay so this is the declaration and this is how we assign address to the pointer variables.
Okay.
Declaration.
And this is assigning.
Okay
this goes for the UN pointers with the help of a basic program.
Okay so here what I have done is like we have having Shlaes initialized in number readable do you.
For in digital right.
Okay so now I have one more pointer variable.
So here we are just assigning the address of num to pointer variable.
Okay does the declaration.
Okay.
So we this should be no stricture.
Before the variable value declare it under the new year you only to suppose restart again.
So you need to do a loop once in all when you're declaring it i there atrocity point pointer variable
so low let's sprint this one.
We have one do we are going to do here is we're just printing this pointer variable in the second row
please note you have to use the format specified as B.
Okay so understand 0 is no definition in C program so let's execute this one.
Okay.
And this is the address of the variable.
Okay so again I'm repeating a point as a variable that stores address off and other variables.
Okay so one more thing we can write like this also.
Which means like you feel if you are printing this Amberson num.
This also the print will Amberson num also will give the same old patterns pointer because this or this
that a the address of number one.
Okay.
So let me go the source and see what it is.
But giving the same value which means B here we are saying is very to point repeat and we are printing
it holds the same address on the other B we can make it we can print it as Ampersand num which also
prints the address of this particular number.
But OK so this is how we can declare a sane and print bind the variables in C C programming language.
That's all for now I'll get you guys in another video.