单项选择题

某字符串的定义为string s=”hello world!”;在该字符串中,字符w的索引是()

A.7
B.6
C.2
D.8