【询问】请根据此实例解释指针的高效性 谢谢
struct student
{
int num;
char name[10];
float score;
};
void main()
{
void print (struct student *p);
struct student *p;
struct student stu = {104, "dongdong", 98.5};
p = &stu;
print (p);
}
#include <stdio.h>
void print (struct student *p)
{
printf ("num = %d\nname = %s\nscore = %.2f\n", p -> num, p -> name, p -> score);
}
[解决办法]
到后面的知道了