 Hello friends. I am Sanjay Gupta. In this video, I am going to discuss how you can use pointers and structures together in C programming. Before starting, you can note how you can search my YouTube channel. You can type my name Sanjay Gupta in YouTube search bar. My channel will be available there. You can watch various programming related videos on my YouTube channel. Now I am going to implement a structure declaration first. Then I will be processing that structure with the help of pointer. So first time including a header file stdio.h, then I am declaring a structure whose name is number. It will be having three members of different data types. So first one is A of integer type, B flow type and character is of C. Sorry, C is of character type. So the structure name is number and it is having three members of different data types. Now inside main function, I am going to declare variable n and pointer p. So n is a normal variable of structure type and p is a pointer to structure. So p can store address of n and through p, I can access all the values which are stored inside n variable. So first I am assigning values through n. So n dot A equals to 10 and dot B equals to 12.5 and n dot C equals to 8. So this way I have initialized all the members of structure through variable n. Now I am assigning address of n into p pointer. So now p is having address of n. So it means I can access all the members which are stored inside n variable through this p pointer. So now you can see I am going to use printf statement which will display values of ABC through this p pointer. So here you have to notice that I have used p and then arrow notation. For arrow notation, I have used hyphen and greater than sign. So remember that whenever you want to access members of structure through pointer, then you have to use this arrow notation. So now printing value of B again, I have to use this arrow notation and similarly for printing value of C p arrow C. So this way I have implemented the code in front of you. Here you can see I have initialized values of structure members through its variable that is n and I have printed values of ABC which are members of structure through pointer p. So this way I have accessed the members of structure through pointer. Now I am going to execute this code. You can see the output A is printing and B is printing 12.5 and C is printing 8 and these informations are correct. So I am able to print the information which are stored in n variable and inside ABC members of n variable through pointer p. So this way if you assign address of structure variable into its type, sorry, if you assign address of structure variable into structure pointer, then through that pointer we can access all the members of structure. And remember that for structure variable you have to use dot operator and for pointer you have to use this arrow notation. So this is the difference between structure variable and structure pointer. I hope you have understood the relation between structure and pointer through this video. If you want to watch more programming related videos you can search my name Sanjay Gupta in YouTube. My channel will be available there. You can watch various programming related videos there. Thank you for watching this video.