单选题

已知:char str[] ="Hello World"; 以下哪个函数可以正确输出str的长度?(   )

A

sizeof()

B

strlen()

C

size()

D

length()

赣ICP备20007335号-2