单选题
C语言
题号 #3085202
以下涉及字符串数组、字符指针的程序段,没有编译错误的是
参考答案
B
答案解析
A选项中,不能对字符数组直接赋值;在C选项中.变量line没有定义,D选项中,变量str2,strl都没有定义,所以选项A、C、D错误,答案为B选项。
你可能感兴趣的试题
A.Fig flower is red.is blue.
B.Fig flower is red.
C.Fig floweris red.
D.Fig floweris
A.0PEN THE DOOR
B.oPEN tHE dOOR
C.open the door
D.Open The Door