[单选题]

以下程序的输出结果是()。includeint fun (char*s){char *p=s;while (*p!='/0,) p£«£«

以下程序的输出结果是( )。 #include<iostream.h> int fun (char*s) { char *p=s; while (*p!='/0,) p++: return (p-s): } void main() { cout<<fun (" ABCDEF ")<<endl: }

A.3

B.6

C.8

D.0

参考答案与解析:

相关试题

以下程序的输出结果是()。#includeint fun (char*s){ch