问题 单项选择题

下面程序的结果是( )。
#include"iostream.h"
void main()

char *str;
Str="test!";
cout<<str[5];

A.程序错误

B.!

C.'\0'

D.为空字符

答案

参考答案:D

问答题
不定项选择