网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下列语句执行的结果是?int('hello')

A.0

B.1

C.100

D.程序出错


参考答案和解析
D
更多 “下列语句执行的结果是?int('hello')A.0B.1C.100D.程序出错” 相关考题
考题 以下语句段执行后的输出结果是()。includemain(){int k=3;if(k)printf("")elseprint 以下语句段执行后的输出结果是( )。 #include<stdio.h> main() {int k=3; if(k) printf("###") else printf("");}A.###B.C.###D.有语法错误,不能执行

考题 下列程序的输出结果是()。includeusing namespace std;int main()于chara[]=”Hello,Te 下列程序的输出结果是( )。 #include<iostream> using namespace std; int main() 于 chara[]=”Hello,Test”; Char*p=a; while(*p) { if(*p)=’a’*p(=’z’) cout<<char(*p+’A’-’a’); else cout<<*p; p++; } return 0; }A.hello,testB.Hello,TestC.HELLO,TESTD.hELLO,tEST

考题 执行下列语句段后程序的输出结果是______。int x[]={1,2,3,4,5};int q=x;cout*(++q)<<end1;

考题 语句“Hello”. equals(“hello”);的正确执行结果是______。A) trueB) falseC) 0D) 1A.B.C.D.

考题 下列代码的执行结果是______。Int length="Hello", length();System.out.println(lenght);A) 5B) 2C) 10D) 6A.B.C.D.

考题 下列语句的输出结果是【 】。Print Int(12345.6789*100+0.5)/100

考题 下列程序的执行结果是______。 include int a; int sum_a(void) { a=a+5; return a; 下列程序的执行结果是______。include<lostream.h>int a;int sum_a(void){a=a+5;return a;}void main(void){a=a+sum_a( );cout<<a<<endl;}

考题 执行下列语句序列: int i=0;while(i<25)i+=3;cout<<i; 输出结果是( )。A.24B.25C.27D.28

考题 下列程序的输出结果是______。includeusing namespace std;int main() {char a []="He 下列程序的输出结果是______。 #include<iostream> using namespace std; int main() { char a []="Hello, World"; char *ptr=a; while (* ptr) { if(*ptr)= 'a' *ptr' <= 'z') cout << char(*ptr+'A'-'a'); else cout << *ptr; ptr++; } return 0; }A.HELLO,WORLDB.Hello,WorldC.hELLO, wORLDD.hello,world

考题 下列程序执行后的输出结果是 void funcl(int i); void func2(int i); char st[]="hello,friend!"; void funcl(int i) {printf("%c",st[i]); if(i<3){i+=2;func2(i);}} void func2(int i) { printf("%c",st[i]); if(i<3){i+=2;func1(i);}} main() {int i=A.helloB.helC.hloD.hlm

考题 有如下程序void func1(int st[],int i){ printf("%c",st[i]); if(i}void func2(int st[],int i){ printf("%c",st[i]); if(i}main(){ char st[ ]="hello,friend! "; int i=0;func1(st,i); printf("\n");}程序执行后输出的结果是A.hello B.hel C.hlo D.编译出错

考题 下列程序执行后的输出结果是()。includevoid func1(int i);void func2(int i);char st[ 下列程序执行后的输出结果是( )。 #include<stdio.h> void func1(int i); void func2(int i); char st[]="hello,friend!"; void funcl(int i) { printf("%c",st[i]); if(i<3){i+=2;func 2(i);} } void func 2(int i) { printf("%c",st[i]); if(i<3){i+=2;funcl(i);} } main() { int i=0; funcl(i);printf("\n"); }A.helloB.helC.hloD.hlm

考题 若已定义int a=256,执行语句cout<<hex<<a;的结果是A.100B.256C.ffeD.ff

考题 下列程序的输出结果是()。includeusing namespace std;int main(){char a[]="Hello,Te 下列程序的输出结果是( )。 #include<iostream> using namespace std; int main() { char a[]="Hello,Test"; char *p=a; while(*p) { if(*p>='a'*p<='’z') cout<<char(*p+'A'-'a'); else cout<<*p; p++; } return 0; }A.hello,testB.Hello,TestC.HELLO,TESTD.hELLO,tEST

考题 执行语句: int result=100; cout= 60)(result 执行语句:int result=100;cout<<(((result>= 60)(result<=100))?"good":"general");结果是【 】。

考题 有下列程序void func1(int i);void func2(int i);char st[ ]="hello,friend! ";void func1(int i){ printf("%c",st[i]); if(i3){i+=2;func2(i);}}void func2(int i){ printf("%c",st[i]); if(i3){i+=2;func1(i);}}main(){ int i=0;func1(i); printf("\n");}执行后的输出结果是A.hello B.helC.hlo D.hlm

考题 语句”Hello”.equals(”hello”);的正确执行结果是( )。A.trueB.falseC.0SXB 语句”Hello”.equals(”hello”);的正确执行结果是( )。A.trueB.falseC.0D.1

考题 有下列程序段: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

考题 下列代码的执行结果是( )。 int length=”Hello”.length( ); System.OUt.println(length);A.5B.2C.10D.6

考题 设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

考题 在PHP中,语句“echo’hello’+128”的输出结果是()。A、helloB、hello128C、0128D、128

考题 语句"Hello".equals("hello")的正确执行结果是()A、trueB、falseC、0D、1

考题 语句Print Format("HELLO","")的输出结果是()A、HELLOB、helloC、HeD、he

考题 执行语句:PRINTLtrim(Rtrim(‘Hello,world’)))的结果是()。

考题 语句PrintFormat(“Hello World”,“”)的输出结果是()。A、hello WORLDB、hello worldC、HELLO WORLDD、HELLO world

考题 填空题执行语句:PRINTLtrim(Rtrim(‘Hello,world’)))的结果是()。

考题 单选题下列代码的执行结果是(  )。int length=“Hello”.length();System.out.println(length);A 5B 2C 10D 6

考题 单选题语句"Hello".equals("hello")的正确执行结果是()A trueB falseC 0D 1