#include<stdio.h>
#include<conio.h>
#include<process.h>
struct student
{
int roll;
char name[20];
};
typedef struct student st;
void main()
{
st s,*ptr=&s;
printf("Enter roll no");
scanf("%d",&s.roll);
printf("Enter name");
scanf("%s",s.name);
printf("student information");
printf("Roll no:%d",ptr->roll);
printf("Name: %s",ptr->name);
getch();
}
#include<conio.h>
#include<process.h>
struct student
{
int roll;
char name[20];
};
typedef struct student st;
void main()
{
st s,*ptr=&s;
printf("Enter roll no");
scanf("%d",&s.roll);
printf("Enter name");
scanf("%s",s.name);
printf("student information");
printf("Roll no:%d",ptr->roll);
printf("Name: %s",ptr->name);
getch();
}