首页 > 其他 > 详细

作业3

时间:2017-03-31 18:01:16      阅读:104      评论:0      收藏:0      [点我收藏+]
#include<stdio.h>
int main()
{    void funstr(char str[12]);
     char str[12]={"hello world"};
     char *i=str;
     str[0]=H;
     funstr(i);
     return 0;
} 
void funstr(char str[12])
{
    int t=0;
    printf("%s\n",str);
    while(str[t]!=\0)
    {
        printf("%c",str[t]);
        t++;
    }
}
Hello world
Hello world
--------------------------------
Process exited after 0.5695 seconds with return value 0
请按任意键继续. . .

 

作业3

原文:http://www.cnblogs.com/chuminghao/p/6652635.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!