Pointer To Structure In C Language | Programmerdouts programmerdouts.blogspot.com/2019/06/pointer-structure-c.html
Pointer To Structure As Pointer are the variable which stores the address of other variable. So , Now we will learn how store the address of structure variable. As you know pointer can point to a variable,only if their data type are same. For example:int type of pointer can only point to int type of variable or array,etc Because of that ,for pointing a structure you will need to make a pointer of structure datatype. So now we will learn how to do all that things So , let start doing it. for learning that we will define a structure student as name , rollno ,div as it's member.
Definition: struct student //structure name { int rollno; //member1 ,integer variable which will store, //student roll no. char name[20]; //member2 a character array of 20 character //which will store name of student. char div; //member3 a character variable, //which will store division of student. };
As we have define a structure now we will declare a pointer of
1/6