#include<stdio.h> struct student{ int num; char name[20]; float score; } stu={112301,"bowen1",20}; void print(struct student *p); int main(void){ print(&stu); } void print(struct student *p){ printf("%d %s %0.1f",p->num,p->name,p->score); }
#include<stdio.h> struct student{ int num; char name[20]; float score; } stu={112301,"bowen1",20}; void print(struct student *p); int main(void){ print(&stu); } void print(struct student *p){ printf("%d %s %0.1f",p->num,p->name,p->score); }