#include<stdio.h>
#include<conio.h>
void main()
{
struct student
{
long int rollno;
char sex;
float height;
float weight;
};
struct student data;
struct student *ptr1;
clrscr();
ptr1 = &data;
ptr1->rollno = 10;
ptr1->sex = 'm';
ptr1->height =5.10;
ptr1->weight = 65;
printf("THE ENTERED CONTENTS ARE :\n");
printf("%d\n",ptr1->rollno);
printf("%c\n", ptr1->sex);
printf("%f\n", ptr1->height);
printf("%f\n" ,ptr1->weight);
getch();
}