Computer Science, asked by ROYALJAAT, 1 year ago

WRITE a programme to display details of student using structure in c programming????

Answers

Answered by aatif5
1
#include<stdio.h>
#include<conio.h>
#include<string.h>
struct student
{
int id;
char name [10];
float avg;
};
void main()
{
struct student record;
record.id=1;
strcpy(record.name,"abcd");
record.avg=90.5;
printf("id=%d\n",record.id);
printf("name=%s\n,record.name);
printf("avverage=%f\n",record.avg);
getch();
clrscr();
}



Similar questions