#include<stdio.h>
#include<malloc.h>
struct student * createstudent(void);
void showstudent(struct student *pst);
struct student{
int sid;
int age;
};
void main(){
struct student *ps;
ps=createstudent();
showstudent(ps);
}
struct student * createstudent(void){
struct student *p=(struct student*)malloc(sizeof(struct student));
p->sid=99;
p->age=88;
return p;
}
void showstudent(struct student *pst){
printf("%d %d\n",pst->sid,pst->age);
}