欢迎来到PP题库网 PP题库官网
logo

单项选择题

有以下程序:
#include <stdio.h>
int fun(char *s)
{ char *p=s;
while(*p !="\0")p++;
return(p-s);
}
main()
{ char *p="01234";
printf("%d\n",fun(p));
}
程序的运行结果是______。

    A.3
    B.6
    C.4
    D.5
点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题