考试吧综合考试论坛's Archiver

考友录-真实的考友社区,邀请注册中!

月光族 发表于 2007-9-18 10:44

软设天天练第41期(有详解)

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">&nbsp;&nbsp;5</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">.下面各语句中,能正确进行赋字符串操作的语句是(</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">)</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">
                                <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">①</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">char&nbsp;s[5]&nbsp;={"ABCDE"};&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">②</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">char&nbsp;s[5]&nbsp;={’A’,’B’,’C’,’D’,’E’}; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">③</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">&nbsp;char&nbsp;*s</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">;</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">s</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">=</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">"ABCDE"</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">;</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">④</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">&nbsp;char&nbsp;*s</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">;</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">scanf("%"</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">,</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">&nbsp;s)</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">;</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">
                                <br/>&nbsp;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">.若有以下定义,则不能表示</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">a</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">数组元素的表达式是()</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">
                                <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;a[10]</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">={</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">1</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">,</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">2</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">,</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">3</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">,</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">4</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">,</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">5</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">,</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">6</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">,</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">7</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">,</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">8</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">,</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">9</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">,</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">1o},*p</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">=</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">a</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">;</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">
                                <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">①</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">*p&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">②</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">&nbsp;a[10]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">③</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">*a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">④</span><span lang="EN-US" style="FONT-SIZE: 14pt;"><font face="Times New Roman">&nbsp;a[p-a]&nbsp;<p></p></font></span></p>

月光族 发表于 2007-9-18 10:46

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%;"><span style="FONT-SIZE: 14pt; COLOR: red; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">详细解答</span><span lang="EN-US" style="FONT-SIZE: 14pt; COLOR: red; LINE-HEIGHT: 150%;"><p></p></span></p><p>**** Hidden Message *****</p>

kitala 发表于 2007-9-18 17:07

3、2

fjutjw 发表于 2007-9-19 14:18

<p>5. ③</p><p>6. ④</p>

liugmwx 发表于 2007-9-19 20:26

<p>2</p><p>4</p>

月光族 发表于 2007-9-20 08:16

<p><strong><font face="Verdana" color="#61b713">kitala</font></strong>&nbsp;&nbsp; <strong><font face="Verdana" color="#61b713">fjutjw&nbsp;&nbsp; liugmwx</font></strong></p><p><strong><font face="Verdana" color="#61b713">多谢以上三位的支持!!</font></strong></p>

zmark0510 发表于 2007-9-23 09:46

huifu

lazio536 发表于 2007-10-14 10:18

22

tyzqqq 发表于 2007-10-16 15:44

ghj

以园 发表于 2007-10-19 21:47

<p>看看答案</p><p></p>

索马里了 发表于 2007-11-1 21:24

32

ajax1995 发表于 2007-11-2 10:13

看看

zjb81 发表于 2007-11-2 15:57

22

hotnba11 发表于 2007-12-8 17:29

努力努力~~[em04][em04]

cqowen 发表于 2007-12-8 20:54

2,4

菜鸟呵呵 发表于 2007-12-9 12:55

1 3

r6912000 发表于 2007-12-10 18:16

2,4

autumns 发表于 2008-3-10 14:30

看看答案是什么

realghost 发表于 2008-3-11 11:40

我的答案

我的答案1:3,2:2

mikeyj 发表于 2008-3-11 12:32

yununununun

页: [1] 2 3 4

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.