单项选择题

下列对字符串的定义中,错误的是()

A.char str[5]="abcde";
B.char str[ ]="abcde";
C.char *str ="abcde";
D.char str[ ]={’a’,’b’,’c’,’d’,’e’,’\0’};

微信扫码免费搜题