单选题

定义字符串 string a = "Hello C++",下列选项可以获取到字符 'C' 的是( )。

A

a[7]

B

a[6]

C

a[5]

D

a[4]

赣ICP备20007335号-2