Why does the speaker recommend watching the program?
A.Because it is related to work being done in class.
B.Because she helped produce it.
C.Because she is excited about it.
D.Because it is a public television broadcast.
第1题
有以下程序
include<stdio.h>
void fun(int p)
{int d=2;
p=d++;printf("%d".p);}
main()
{int a=1;
fun(a):printf("%d\n",a);)
程序运行后的输出结果是()。
A.32
B.12
C.21
D.22
第2题
有以下程序
#include<stdio.h>
void fun(int P)
{int d=2;
P=d++;printf(“%d”,P);}
main()
{int a=1;
fun(A);prinff(“%.d\n”,A);}
程序运行后的输出结果是
A.32
B.12
C.21
D.22
第3题
有以下程序
#include<stdi0.h>
void fun(int n,int*p)
(int f1,f2;
if(n==1|| n==2)*p=1;
else
{ fun(n-1,&f1);fun(n-2,&f2);
*p=f1+f2;
}
}
main
{ int s;
fun(3,&s);printf("%d",s);
}
程序的运行结果是()。
A.2
B.3
C.4
D.5
第4题
有以下程序 #include<stdi0.h> void fun(int n,int*p) (int f1,f2; if(n==1|| n==2)*p=1; else { fun(n-1,&f1);fun(n-2,&f2); *p=f1+f2; } } main { int s; fun(3,&s);printf("%d",s); } 程序的运行结果是()。
A.2
B.3
C.4
D.5
第5题
有以下程序
#include<stdio.h>
void fun(int*p)
{printf("%d\n",p[5]);}
main()
{ int a[10]={1,2,3,4,5,6,7,8,9,10};
fun(&a[3]);
}
程序运行后的输出结果是
A.5
B.6
C.8
D.9
第6题
有以下程序:
includc<stdio.h>
void fun(int *p)
{printf("%d\n",p[5]);}
main()
{int a[10]={1,2,3,4,5,6,7,8,9,10};
fun(&a[3]);
}
程序运行后的输出结果是()。
A.5
B.6
C.8
D.9
第7题
有以下程序
#include <stdio.h>
void fun(int n,int *p)
{ int f1,f2;
if(n==1||n==2) *p=1;
else
{ fun(n-1,&f1); fun(n-2,&f2);
*p=f1+f2;
}
}
main()
{ int s;
fun(3,&s); printf("%d\n",s);
}
程序的运行结果是
A)2
B)3
C)4
D)5
第8题
有以下程序: #includc<stdio.h> void fun(int *p) {printf("%d\n",p[5]);} main() {int a[10]={1,2,3,4,5,6,7,8,9,10}; fun(&a[3]); } 程序运行后的输出结果是()。
A.5
B.6
C.8
D.9
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!