首页 › 答案 › 题库 › 远程教育 › 国家开放大学

下面哪个接口函数能获取本地主机名字()。

下面哪个接口函数能获取本地主机名字()。
A.GetAdaptersInfo()
B.gethostbyname()
C.gethostname()
D.getsockopt()
正确答案:C