A.imagination
B.prediction
C.information
D.outline
第1题
运行程序,程序运行结果是()。 #include <iostream> #include <string> using namespace std; int main() { string a="string",*p=&a; cout<
< <endl; return> A、s
B、string
C、变量a的地址
D、变量p的地址
</endl;>
第2题
有以下程序: #include <iostream> #include <string> using namespace std; int main () { char b1[8] = "abcdefg"; char b2[8],*pb=b1+3; while (--pb>=b1) strcpy (b2, Pb) ; cout<<strlen (b2) <<end1; return 0; } 程序运行后的输出结果是()。
A.8
B.3
C.1
D.7
第3题
有以下程序: #include <iostream> #include <string> usxng namespace std; int main() { char p[] = "abcdefgh"; cout<<strlen(strcpy(p,"12345"))<<end1; return 0; } 执行后输出的结果是()。
A.8
B.12
C.5
D.7
第5题
第6题
以下程序的运行结果是 。 #include <iostream> using namespace std; void main() { int a = 0, b = 1; for (; a<5 5="=" ; a++, b++) { if ((a+b ) % 0) continue; b +="a;" } , \n";>
第7题
以下程序的输出结果是 。 #include <iostream> #include <iomanip> using namespace std; void main() { int i; for (i=1;i>=0;) cout< <i--;>
第8题
以下程序运行后的输出结果是 。 (条件表达式的多样性) #include <iostream> using namespace std; void main() { int a = 3, b = 4, c = 5, t = 99; if(b) if(a) cout< </iostream></endl;> << <t> < <endl; else>
第10题
有以下程序: #include<iostream> #include<string> using namespace std; int main() { char arr[2][4]; strcpy(arr[0],"you"); strcpy(arr[1],"me"); arr[0][3]='&'; cout<<arr[0]<<end1; return 0; } 执行后的输出结果是()。
A.you&me
B.you
C.me
D.err
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!