单选题:有如下程序: #include usingnamespacestd; intmain() { charstr[100],

  • 题目分类:C++
  • 题目类型:单选题
  • 号外号外:关注公众号送1000体验阅读点!
题目内容:
有如下程序:
#include
usingnamespacestd;
intmain()
{
charstr[100],*p;
cout<<”pleaseinputastring:”;
cin>>str;
p=str;
for(inti=0;*p!=”\0”;p++,i++);
cout<<i< retum0;
}
运行这个程序时,若输入字符串为
abcdefgabcd
则输出结果是(  )。 A.7
B.12
C.13
D.100
关注公众号,送1000阅读点
关注公众号,送1000阅读点
1:点击图片或者扫二维码进入公众号,关注公众号!
2:私信发送您在66题库注册的会员号!
3:在一个小时内,您将收到充值卡
4:到点卡充值输入充值卡内容即可!
5:多关注多得!免费的呦!只要本站不倒闭,永久有效!
参考答案:【答案仅供学习,请勿对照自行用药等】
答案解析:

Please do not hesitate to call me if I can be of further ass

Please do not hesitate to call me if I can be of further assistance.A.see B.cont

查看答案

she seemed to have detected some anger in his voice.

she seemed to have detected some anger in his voice.A.heard B.noticed C.realized

查看答案

有如下程序: #include usingnamespacestd; classA{ public staticinta

有如下程序: #include usingnamespacestd; classA{ public staticinta; voidinit(){a=1;} A

查看答案

下列字符串中,不可以用作C++标识符的是(  )。

下列字符串中,不可以用作C++标识符的是(  )。A.y_2006 A.y_2006 B.____TEST__H B.____TEST__H C.Retum C

查看答案

在E-R图中,用来表示实体之间是联系的图形是(  )。

在E-R图中,用来表示实体之间是联系的图形是(  )。A.矩形 B.椭圆形 C.菱形 D.平行四边形

查看答案