data structures using note statement of all the operators ->)and [have the highest priority this is evident from the following stud fees+will be interpreted as (stud fees)+copying and comparing structures we can assign structure to another structure of the same type for exampleif we have two structure variables stud and stud of type struct student given as struct student stud "rahul""bca" rahul struct student stud { "rahul""bca" }struct student stud }bca then to assign one structure variable to anotherwe will write stud stud this statement initializes the members of stud with the values of members of stud thereforenow the values struct student stud stud of stud and stud can be given as shown in fig does not permit comparison of one structure variable rahul bca with another howeverindividual members of one r_no name course fees structure can be compared with individual members of another structure when we compare one structure figure values of structure variables member with another structure' memberthe comparison programming tip will behave like any other ordinary variable comparison for exampleto compare the fees of two studentswe will write an error will be generated if you r_no name course try to compare two structure variables fees if(stud fees stud fees//to check if fees of stud is greater than stud programming examples write program using structures to read and display the information about student #include #include int main(struct student int roll_nochar name[ ]float feeschar dob[ ]}struct student stud clrscr()printf("\ enter the roll number ")scanf("% "&stud roll_no)printf("\ enter the name ")scanf("% "stud name)printf("\ enter the fees ")scanf("% "&stud fees)printf("\ enter the dob ")scanf("% "stud dob)printf("\ ********student' details *******")printf("\ roll no % "stud roll_no)printf("\ name % "stud name)printf("\ fees % "stud fees)