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

第三次作业

时间:2017-03-31 23:45:48      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:for   stdio.h   class   问题   作业   com   技术   img   logs   


 


 

#include<stdio.h>
int main()
{
    int a[10]={0,1,2,3,4,5,6,7,};
    int *p=a;  
    int fun(int *b);
    fun(a);
}
int fun(int *b)
{
    int j;
    for(j=0;j<=7;j++)
    printf("%d ",*b+j);
}技术分享

 

技术分享技术分享

有一个小问题p=&a[0]是错误的但是书上这个是对的啊

 

第三次作业

标签:for   stdio.h   class   问题   作业   com   技术   img   logs   

原文地址:http://www.cnblogs.com/zbr-123/p/6653769.html

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