填空题

下列程序的输出结果是 【8】 。 #include <iostream> #include <cstring> using namespace std; void fun(const char *s, char &c){c=s[strlen (s)/2];} int main() { char str[]="ABCDE"; char ch=str[1]; fun(str, ch); cout<<ch; return 0; }

【参考答案】

C