 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can read student details and you can display them using structure variable and its pointer. 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 on first page. You can watch various programming related videos there. Now I am going to implement solution of this problem. So first I am including a header file that is stdio.h. Then I am declaring a structure whose name is student. It is having first member that is in throw number. Second member is character name. It is an array. And then third member is float box. And then I have terminated the structure declaration. Now I am going to define main function. Inside main, I am declaring structure variable that is s and its pointer that is p. So inside p pointer, I can assign address of s. And through p pointer, I can access all the members values which are represented through s variable. So first I am going to receive values through s variable. So enter roll number. This message will be displayed on output screen. Through scanf, I can read roll number from user through s.roll number. Now for reading name, message, enter name will be displayed and then get s, s.name. The next message will be enter marks. To read marks from user, again I am implementing scanf m% s.marks. So this way I have implemented all the reading operations. If I want to read mixed information, then I have to clean the buffer. I am calling fplush function and I am passing an argument std in standard input argument inside it. So this fplush function will clear the buffer. This I am doing because I am reading mixed information. So before scanf and get s, I am calling this function. After reading process, I am going to assign address of s variable into p pointer. So now structure variable s address is available inside p pointer. So to print these information on output screen, I am using p pointer instead of s variable. So now you have to watch it carefully. So roll number equals to %d. Now I am using p arrow notation and then roll number. So remember that if you are accessing members through structure variable like this s.roll number. So here you have to use dot operator because you are accessing roll number through its structure variable. Here I am accessing roll number through p pointer. So whenever you want to access structure member through its pointer, then you have to use this arrow notation and you can frame it by using hyphen and greater than sign. So this way roll number of student will be displayed. And remember that I am accessing roll number through p pointer whereas I have received information through s variable. I am doing this because I have assigned address of structure variable into p pointer. Now to display name I am using this notation and to display marks this notation. So this way roll number name and marks will be displayed on output screen through pointer. So this way I have used structure variable with the help of pointer. I hope you have understood how I have implemented this. Now I am going to execute this code so that you can watch it whether it is working properly or not. Sorry, I forgot m percent here. Now again I am going to execute this code. So I am entering roll number one name Sanjay and marks 100. You can see the output student details roll number one name Sanjay and marks 100. So all the information which are displayed on output screen is correct. So this way I have received information through structure variable. But I am printing those information on output screen through its pointer. So this way if you want to process structure variable through its pointer then you can do it easily. And I have demonstrated it in this video. I hope you have understood whatever I have explained in this video. If you want to watch more programming related videos you can type my name Sanjay Gupta in YouTube search. My channel will be available there. You can watch various programming related videos there. Thank you for watching this video.