ShriRam Changed status to publish July 16, 2022
#include<stdio.h> #include<conio.h> void main() { int i,n=3; struct student { int age; char name[200]; }; struct student s1[3]; for(i=0;i<n;i++) { printf("Enter Name and age"); scanf("%s %d",s1[i].name, &s1[i].age); } for(i=0;i<n;i++) { printf("\nName = %s and age = %d",s1[i].name, s1[i].age); } getch(); }
ShriRam Changed status to publish July 16, 2022