data structures using points[ points[ for( = ; < ; ++printf("\ coordinates of point[%dare % and % "ipoints[ixpoints[iy)return output coordinates of point[ are and coordinates of point[ are and coordinates of point[ are and unions inside structures generallyunions can be very useful when declared inside structure consider an example in which you want field of structure to contain string or an integerdepending on what the user specifies the following code illustrates such scenario#include struct student union char name[ ]int roll_no}int marks}int main(struct student studchar choiceprintf("\ you can enter the name or roll number of the student")printf("\ do you want to enter the name( or )")gets(choice)if(choice==' |choice==' 'printf("\ enter the name")gets(stud name)else printf("\ enter the roll number")scanf("% "&stud roll_no)printf("\ enter the marks")scanf("% "&stud marks)if(choice==' |choice==' 'printf("\ name% "stud name)else printf("\ roll number% "stud roll_no)printf("\ marks% "stud marks)return now in this codewe have union embedded within structure we know the fields of union will share memoryso in the main program we ask the user which data he/she would like to store and depending on his/her choice the appropriate field is used