运行下列程序段时,可能发生错误的程序段是()
A.chars[6]=={”ABCDE”);s[4]=='\0'; B.chars[5],*p==S;p[4]=='\0'; C.char*s;s=”ABCDEF”; D.char*s;scanf(”%s”,s);正确答案D
运行下列程序段时,可能发生错误的程序段是()
A.chars[6]=={”ABCDE”);s[4]=='\0'; B.chars[5],*p==S;p[4]=='\0'; C.char*s;s=”ABCDEF”; D.char*s;scanf(”%s”,s);正确答案D