下列对字符串的定义中,错误的是( )。
A.char str[7] = "FORTRAN"; B.char str[] = "FORTRAN"; C.char *str = "FORTRAN"; D.char str[] = {'F','O','R','T','R','A','N',0};正确答案A
下列对字符串的定义中,错误的是( )。
A.char str[7] = "FORTRAN"; B.char str[] = "FORTRAN"; C.char *str = "FORTRAN"; D.char str[] = {'F','O','R','T','R','A','N',0};正确答案A