#include <stdio.h>
typedef struct
{
int age;
char *name;
} Student;
void test();
int main()
{
Student mystu = {20, "jack"};
test(mystu);
printf("%d-%s\n", mystu.age, mystu.name);
return 0;
}
void test(Student stu)
{
stu.age = 10;
stu.name = "rose";
}
求解这个题的输出结果 并解释 谢谢 |
|