更多"下列程序执行后的输出结果是( )。 #include<stdio."的相关试题:
[单项选择]下列程序执行后的输出结果是( )。
#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. hello
B. hel
C. hlo
D. hlm
[单项选择]下列程序执行后的输出结果是
void funcl(int i);
void func2(int i);
char st[]="hello,friend!";
void fund(int i)
{ cout<<st[i];
if(i<3){i+=2;func2(i);}
}
void func2(int i)
{ cout<<st[i];
if(i<3){i+=2;funcl(i);}
}
main( )
{int i=0;fund(i);cout<<endl;}
A ) hello B) hel C) hlo D) hlm
[单项选择]下列程序执行后的输出结果是
void funcl(int i);
void func2(int i);
char st[]="hello,frlend!";
void funcl(int i)
cout<<st[i];
if(i<3)i+=2;func2(i);
void func2(int i)
cout<<st[i];
if(i<3)i+=2;funcl(i);
main( )
int i=0; furicl(i); cout<<endl;
A. hello
B. hel
C. hlo
D. hlm
[单项选择]下列程序执行后的输出结果是( )。
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;funcl(i);
main( )
int i=0;funcl(i);printf("/n");
A. hello
B. hel
C. hol
D. hlm
[单项选择]下列程序执行后的输出结果是 void func1(int i); void func2(int i); char st[]="hello,friend!”; void func1(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);}} { int i=0;func1(i);printf("/n");}
A. hello
B. hel
C. hlo
D. hlm
[单项选择]下列程序执行后的输出结果是( )。 void func1 (int i); void func2(int i); char st[]="hello,friend!"; void func1 (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=0;func1(i);printf("/n");}
A. hello
B. hel
C. hol
D. hlm
[单项选择]下列程序执行后的输出结果是( )。
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=0;funcl(i);printf("/n"); )
A. hlm
B. hlo
C. hello
D. he1
[填空题]有以下程序,程序执行后,输出结果是
#include<stdio.h>
void fun(int*A)
a[0]=a[1];
main( )
int a[10]=10,9,8,7,6,5,4,3,2,1,,i;
for(i=2;i>1=0;i-) fun(&a[i]);
for(i=0;i<10;i++) printf("%d,a[i]);
printf("//n");
[填空题]有下列程序,程序执行后,输出结果是______。
#include<stdio.h>
void fun(int *a)
a[0]=aEi];
void main( )
int a[10]=10,9,8,7,6,5,4,3,2,1,i;
for(i=2;i>=0;i--)fun(&a[i]);
for(i=0;i<10;i++)printf("%d",a[i]);
printf("/n")
[简答题]对于运行于UNIX系统中的以下程序,其执行后的输出结果是______。
void main( )
printf("hello1");
Fork( );
printf("hello2");
[单项选择]下面程序的输出结果是
public class Test
public static void main(String[] args)
int[]array=2,4,6,8,10;
int size=6;
int result=-1:
try
for(int i=0;i<size&&result==-1;i++)
if(array[i]==20)result=i;
catch(ArithmeticException e)
System.out.println("Catch---1");
catch(ArrayIndexOutOfBoundsException e)
System.out.println("Catch---2");
catch(Exception e)
System.out.println("Catch---3");
A. Catch---1
B. Catch一--2
C. Catch---3
D. 以下都不对