单选题

执行下面C++代码后输出的是( )。

string str =("chen")

int x =str.length()

cout << x << endl;

A

4

B

3

C

2

D

5

赣ICP备20007335号-2