[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$ffXrvfQb6TVTX4ExZSl-UjI07_LCuxnORWrr489W4A_w":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":16,"related":17,"source":27,"type":28},[],"2026-03-25 07:33:53",327934664,[8,9,10,11],"5","6","7","8",{"courseId":13,"courseImg":14,"courseName":15},"8336f75d6d4cb0ae106461502e8ea0e0","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F8d8e99875725bed83e7cb68c2de07f03.jpg","C++语言程序设计","Suppose you declarechar city[7] = &quot;ABCDEF&quot;;How many characters are stored in city",[18,29,36,45,54,63,70,79,84,87],{"answer":19,"createTime":5,"id":20,"options":21,"question":26,"source":27,"type":28},[],327934656,[22,23,24,25],"80","79","strlen(s)","strlen(s) &ndash; 1","The ? mark in the following code should be replaced by ___________. #include &lt;iostream&gt; #include &lt;cctype&gt; #include &lt;cstring&gt; using namespace std; int countLetters(const char s[ ]) { int count = 0; for (int i = 0; i &lt; ? ; i++) { if (isalpha(s[i])) count++; } return count; } int main( ) { \u002F\u002F Prompt the user to enter a string cout &lt;&lt; &quot;Enter a string: &quot;; char s[80]; cin.getline(s, 80); cout &lt;&lt; &quot;The number of letters in &quot; &lt;&lt; s &lt;&lt; &quot; is &quot; &lt;&lt; countLetters(s) &lt;&lt; endl; return 0; }","v1",0,{"answer":30,"createTime":5,"id":31,"options":32,"question":35,"source":27,"type":28},[],327934657,[33,34],"yes","no","Are the following two declarations the same?char city[7] = &quot;Dallas&quot;;char city[ ] = &quot;Dallas&quot;",{"answer":37,"createTime":5,"id":38,"options":39,"question":44,"source":27,"type":28},[],327934658,[40,41,42,43],"D","Dallas","Dallas0","nothing printed","Suppose char city[7] = &quot;Dallas&quot;; what is the output of the following statement?cout &lt;&lt; city",{"answer":46,"createTime":5,"id":47,"options":48,"question":53,"source":27,"type":28},[],327934659,[49,50,51,52],"四个字节","五个字节","六个字节","七个字节","设有数组定义:char array[ ] = &quot;China&quot;; 则数组 array 所占的空间为( )",{"answer":55,"createTime":5,"id":56,"options":57,"question":62,"source":27,"type":28},[],327934660,[58,59,60,61],"char str[5] = &quot;good!&quot;","char str[ ] = &quot;good!&quot;","char str[8] = &quot;good!&quot;","char str[5] = {'g', 'o', 'o', 'd', '\\0'}","以下不能正确地为字符串赋初值的语句是( )",{"answer":64,"createTime":5,"id":65,"options":66,"question":69,"source":27,"type":28},[],327934661,[41,67,40,68],"DallasDallas","DD","What will be displayed by the following code?char s2[7] = &quot;Dallas&quot;;char s1[14] = &quot;Dallas&quot;;strcat(s1, s2);cout &lt;&lt; s1",{"answer":71,"createTime":5,"id":72,"options":73,"question":78,"source":27,"type":28},[],327934662,[74,75,76,77],"1","0","-1","2","What will be displayed by the following code?char s2[7] = &quot;Dallas&quot;;char s1[14] = &quot;Dallas&quot;;cout &lt;&lt; strcmp(s1, s2)",{"answer":80,"createTime":5,"id":81,"options":82,"question":83,"source":27,"type":28},[],327934663,[33,34],"Are the following two declarations the same?char city[8] = &quot;Dallas&quot;;char city[ ] = &quot;Dallas&quot;",{"answer":85,"createTime":5,"id":6,"options":86,"question":16,"source":27,"type":28},[],[8,9,10,11],{"answer":88,"createTime":5,"id":89,"options":90,"question":91,"source":27,"type":28},[],327934665,[8,9,10,11],"Show the output of the following code:char city[7] = &quot;Dallas&quot;;cout &lt;&lt; strlen(city)"]