问题
单项选择题
在C语言中,只有在使用时才占用内存单元的变量,其存储类型是______。
A.auto和register
B.extern和register
C.auto和static
D.static和register
答案
参考答案:A
解析: auto和register只有在使用时才开辟空间,占用内存单元,所以选择A。
在C语言中,只有在使用时才占用内存单元的变量,其存储类型是______。
A.auto和register
B.extern和register
C.auto和static
D.static和register
参考答案:A
解析: auto和register只有在使用时才开辟空间,占用内存单元,所以选择A。