作业三

#include<stdio.h>
int main() {
    void fun(int a[9]);
    int a[9]= {5};
    fun(a);
}
void fun(int a[]) {
    int i;
    int *p;
    p=&a[i];
    for(i=0; i<=9; i++)
        printf("%d  ",*p);
}/*5  5  5  5  5  5  5  5  5  5
--------------------------------
Process exited after 0.03118 seconds with return value 0
请按任意键继续. . .*/

码云账号:736091137@qq.com

总结?:这次作业吧,在码云这个地方花的时间比解决代码花了更多时间呢。代码上面话在fun函数上花了比较多的时间,主要是在fun函数在主函数中的套用上出了问题,最后在同学帮助下勉强解决了。

posted @ 2017-04-03 21:36  桜珞  阅读(109)  评论(0编辑  收藏  举报