网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
执行“cout.<<char(‘F’,-2)<<end 1;”语句后得到的输出结果为【 】。
参考答案
更多 “ 执行“cout.<<char(‘F’,-2)<<end 1;”语句后得到的输出结果为【 】。 ” 相关考题
考题
执行如下程序后的输出结果是【】。include include using namespace std;int ma
执行如下程序后的输出结果是【 】。include <iostream>include <fstream>using namespace std;int main ( ){char s[25];ofstream fl("data.txt");f1<<"C++ Programming";f1.close ();ifstream f2 ("data.txt");
考题
下面程序执行后,输出结果为:true请在程序的每条横线处填写一个语句,使程序的功能完整。注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。public class TestStringCompare{{public static void main(String ____________________ args){char charl[]={'t','e','s','t'};char char2[]={'t','e','s','t','1'};String str1=new String(___________________);String str2=new String(char2,0,4);System.out.println(__________________________);}}
考题
执行下列语句后,输出结果为steven的是char*str="steven";eout.write(str, );A.strlen(str)B.sizeof(str)C.strlen(str+1)D.sizeof(str-1)
考题
已知a的ASCⅡ码为97,执行下面两个语句后,输出的结果为______。 char c1=97;c2=98; printf("%d%c",c1,c2);A.97 98B.97 bC.a 98D.a b
考题
下列程序的输出结果为【】。include void main(){ char a[]="abcdabcabfgacd"; int i1
下列程序的输出结果为【 】。include <iostream. h>void main(){char a[]="abcdabcabfgacd";int i1=0,i2=0,i=0;while (a[i]){if (a[i]=='a') i1++;if (a[i]=='q') i2++;i++;}cout<<i1<<''<<i2<<end1;}
考题
下列程序的输出结果为includevoid main( ){char * a[ ]={"hello","the","world"};c
下列程序的输出结果为 #include<iostream.h> void main( ) { char * a[ ]={"hello","the","world"}; char * * pa=a; pa++; cout <<*pa<<end1; }A.helloB.theC.worldD.hellotheworld
考题
下列程序的输出结果为includevoid main(){char*a[]={"hello","the","world"};char*
下列程序的输出结果为 #include<iostream.h> void main() { char*a[]={"hello","the","world"}; char**pa=a; pa++; cout<<*pa<<end1; }A.helloB.theC.worldD.hello the world
考题
执行下列语句后,输出结果为steven的是 Char * str="steven"; cout. write(str, );A.strlen(str)B.sizeof(str)C.strlen(str+1)D.sizeof(str-1)
考题
以下程序运行后的输出结果是【】。 include void main(){char s[]=“123456”,*p;for(p=s
以下程序运行后的输出结果是【 】。include<iostream.h>void main(){char s[]=“123456”,*p;for(p=s; p<s+2; p++)cout<<p<<end1;}
考题
执行下列程序语句后,输出结果为()。ineludeusing namespace std;int m=5;int main(){i
执行下列程序语句后,输出结果为( )。 #inelude<iostream> using namespace std; int m=5; int main() { int m=3; m++; ::m++; cout<<m<<end1; return 0; }A.3B.4C.5D.6
考题
有下列程序段:include using namespace std;int main() { char b[]= "Hello,you"; b[
有下列程序段: #include <iostream> using namespace std; int main() { char b[] = "Hello,you"; b[5] = 0; cout<<b<<end1; return 0; } 执行此程序后,得到的输出结果是( )。A.Hello,youB.Hello0youC.HelloD.0
考题
设char str1[11]="HELLO,",str2[10]=“world”;则执行语句cout
设char str1[11]="HELLO,",str2[10]=“world”;则执行语句 cout<<strlen(strcpy(str1,str2)));后的输出结果是 ______。A.12B.11C.7D.5
考题
判断题执行“printf("%c",’F’-2);”语句后得到的输出结果为H。()A
对B
错
热门标签
最新试卷