首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

【询问】请根据此实例解释指针的高效性 多谢

2013-07-01 
【询问】请根据此实例解释指针的高效性谢谢struct student{int numchar name[10]float score}void main(

【询问】请根据此实例解释指针的高效性 谢谢
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);
}
[解决办法]
到后面的知道了

热点排行