单选题:以下代码的输出结果是( )。
以下代码的输出结果是( )。
```
string s, t;
s="abcdefgh";
t=s.substr(3);
cout << t << endl;
```
@[C](2)
A. abc
B. cdefgh
C. defgh
D. fgh
A.abc
B.cdefgh
C.defgh
D.fgh
答案:C
```
string s, t;
s="abcdefgh";
t=s.substr(3);
cout << t << endl;
```
@[C](2)
A. abc
B. cdefgh
C. defgh
D. fgh
A.abc
B.cdefgh
C.defgh
D.fgh
答案:C