码迷,mamicode.com
首页 > 其他好文 > 详细

三次作业

时间:2017-04-04 20:04:28      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:turn   三次   style   proc   复制   images   pre   http   roc   

#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
请按任意键继续. . .
这次作业较前几次作业要相对简单一些,不过码云代码还是不太懂。

码云代码账号:1841655732@qq.com
技术分享

 

三次作业

标签:turn   三次   style   proc   复制   images   pre   http   roc   

原文地址:http://www.cnblogs.com/yanyuzuishuai/p/6666193.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!