万能百科  > 计算机   > 

[单项选择题] 以下能正确定义数据类型SystemInfo的代码是( )。

2021-07-14   

[单项选择题] 以下能正确定义数据类型SystemInfo的代码是( )。

A.Type SystemInfo

DiskDrives As String*10

Memory As Long

End Type

B.Type SystemInfo

DiskDrives As String*10

Memory As Long

End SystemInfo

C.Type SystemInfo

DiskDrives String*10

Memory Long

End Type SystemInfo

D.Typedef SystemInfo

DiskDnves String*10

MemoryLong

End Type

正确答案:

A

参考解析:

本题考查自定义类型的定义。自定义类型要求以Type开始,以End Type结束,在两者之间包含有各个成员的说明,要求字符串定义为定长字符串,同时每个成员的类型以“As”引出。

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签