#include <stdio.h>

struct Student
{
	char name[50];
	int code;
	float grd;
};

struct Student *test(void), st= {"Alice", 2222, 8.5};

int main()
{
	struct Student stud = {"somebody", 1111, 7.5}, *ptr = &stud;

	*ptr = *test();
	printf("%s %d %d\n", ptr->name, ptr->code, ptr->grd);
	return 0;
}

struct Student *test(void)
{
	return &st;
}

