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

第三次作业

时间:2017-04-04 21:48:45      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:amp   log   .com   oid   pre   with   turn   return   print   

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

运行结果:

1
2
3
4
5
6
7
8
9
10
 
--------------------------------
Process exited after 0.2992 seconds with return value 3
请按任意键继续. . .

这次作业对我来说还是有点挑战的,我希望有更多的题目等待我去挑战。

码云账号1933547995@qq.com

 

第三次作业

标签:amp   log   .com   oid   pre   with   turn   return   print   

原文地址:http://www.cnblogs.com/zthzuishuai/p/6666378.html

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