You are on page 1of 2

#include <stdio.

h>

//EZZZZZZZZZZZZZZZZZYYYYYYYYYYY

struct student
{
char name[50];
int roll;
float marks;
} s,r;

struct student copyStrucObjEzboi(struct student a, struct student b);

void main()
{
int i;

printf("Enter information of student:\n");

s.roll = 1;

printf("Enter name: ");


scanf("%s",&s.name);

printf("Enter marks: ");


scanf("%f",&s.marks);

printf("\n");

r=copyStrucObjEzboi(s,r);

printf("Coped Info:\n\n");

printf("\nRoll number: \n",1);


printf("Name: ");
puts(r.name);
printf("Marks: %.1f",r.marks);
printf("\n");

}
struct student copyStrucObjEzboi(struct student a, struct student b)
{
b=a;
return b;
}

You might also like