#include <stdio.h>
#include <conio.h>
int main()
{
typedef struct student
{
int rollno;
char name[20];
} stud;
stud s1, s2, *p1, *p2;
p1 = &s1;
p2 = &s2;
printf("First Method \nenter the roll no and name\n");
scanf("%d%s", &(*p2).rollno, (*p2).name);
printf("rollno-%d name-%s", (*p2).rollno, (*p2).name);
printf("\n\n");
printf("Second Method \nenter the roll no and name\n");
scanf("%d%s", &(p1->rollno), p1->name);
printf("rollno-%d name-%s", p1->rollno, p1->name);
return 0;
}