第三次作业

一,码云账号:2601249335@qq.com

二,计算机术语英语词典APP截图

三,

#include<stdio.h>
void fun(int *p)
{
    int i;
    for(i=0;i<10;i++)
    printf("%d\n",*(p+i));
}
int main()
{
    int a[10]={0,1,2,3,4,5,6,7,8,9};
    int *p;
    p=a;
    fun(p);
}

运行结果:

0
1
2
3
4
5
6
7
8
9

--------------------------------
Process exited after 0.1473 seconds with return value 0
请按任意键继续. . .

总结:1,在编程过程中用主函数定义指针和相关变量,用fun函数运用for循环输出数组

        2,第一次接触了码云

posted @ 2017-04-04 19:19  陈怡婷  阅读(92)  评论(0编辑  收藏  举报