单选题
C语言
题号 #2252748
对下述程序的判断中,正确的是( )。
#include<stdio.h>
main( )
{ char*p,s[256];
p=s ;
while(strcmp(s,"the end"))
{ printf("Input the strin9:");
gets(s);
while(*p)
putchar(*p++);
}}
参考答案
C
答案解析
外部变量在编译时由系统分配永久的内存空间,所以外部变量的类型不是自动存储类别。
你可能感兴趣的试题
A.4
B.39
C.45
D.6
A.CDEF
B.ABEF
C.ABCD
D.CDAB
A.变量c1被赋予字符a,c2被赋予回车符
B.程序将等待用户输入第2个字符
C.变量c1被赋予字符a,c2中仍是原有字符2
D.变量c1被赋予字符a,c2中将无确定值