运行下列程序后,输出结果是()
intf(char *s)
{char *p=s;
while (*p ) p++;
return ( p—s ) ;
}
main()
{printf("%d\n",f("123456"));
}
A.5 B.6 C.7 D.8正确答案B
运行下列程序后,输出结果是()
intf(char *s)
{char *p=s;
while (*p ) p++;
return ( p—s ) ;
}
main()
{printf("%d\n",f("123456"));
}
A.5 B.6 C.7 D.8正确答案B