执行以下语句后,输出的结果是 a$="Good" b$="Afternoon" Print a$+b$ Print a$&b $

admin2009-02-13  25

问题 执行以下语句后,输出的结果是        a$="Good"        b$="Afternoon"        Print a$+b$       Print a$&b $

选项 A、Goodaftenoon            GoodAfternoon
B、Good+                  GoodAfternoon
C、Good+                Good&Afternoon
D、Good        Good&

答案1

解析 字符串的运算符有“&”,表示将两个字符串连接在一起,“+”也可以起到相同的作用,但为了使程序严谨并提高可读性,一般不使用“+”。
转载请注明原文地址:https://jikaoti.com/ti/GXq0FFFM
0

最新回复(0)