#include<stdio.h>
struct anik
{
char name[50];
int age;
};
struct anik rob()
{
struct anik s;
printf("Enter Name : ");
gets(s.name);
printf("Enter Age : ");
scanf("%d", &s.age);
return s;
};
int main()
{
struct anik a;
a = rob();
printf("\nStudent Information : \n");
printf("Name : %s\n", a.name);
printf("Age : %d\n\n", a.age);
getchar();
return main();
}
struct anik
{
char name[50];
int age;
};
struct anik rob()
{
struct anik s;
printf("Enter Name : ");
gets(s.name);
printf("Enter Age : ");
scanf("%d", &s.age);
return s;
};
int main()
{
struct anik a;
a = rob();
printf("\nStudent Information : \n");
printf("Name : %s\n", a.name);
printf("Age : %d\n\n", a.age);
getchar();
return main();
}
Comments
Post a Comment