logo - 刷刷题
下载APP
【简答题】

功能:将数组a中10个整数按相反的顺序存放。程序中有3处错误代码,请指在划线出填上正确答案。 #include void inv(int x[],int n) { int t,i,j,m=(n-1)/2; for(i=0;i<=m;i++) {j=n-1-i; t=x[i]; x[i]=x[j]; x[j]=t;} } void main() {int a[10],i; printf("input 10 number"); for(i=0;i<10;i++) scanf("%d",a[i]);____ printf("The original array:\n"); for(i=0;i<10;i++); printf("%d,",a[i]); printf("\n"); inv(a,10); printf("The array has been inverted:\n"); for(i=0;i<10;i--) ____ printf("%d,",a[i]); printf("\n"); }

举报
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三

【单选题】有如下事件过程:Private Sub Form_Load() Show Dim Arr() As Variant Arr = Array(1, 3, 5, 7, 9, 11, 13, 15) Call converse(Arr) For i = 0 To 7 Print arr(i); Next iEnd Sub 以上程序的功能是,通过调用Converse过程,将数组Arr中的元素逆序存放并输出...

A.
Private Sub converse(dim a() as Variant ) Dim T For i = LBound(A) To UBound(A) T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
B.
Private Sub converse(dim a() as Variant) Dim T Dim J As Integer J = (LBound(A) + UBound(A)) / 2 For i = LBound(A) To J T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
C.
Private Sub converse(a() As Variant) Dim T For i = LBound(A) To UBound(A) T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
D.
Private Sub converse(a() As Variant) Dim T Dim J As Integer J = Int((LBound(A) + UBound(A)) / 2) For i = LBound(A) To J T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub

【单选题】下列各进制的整数中,值最大的一个是 ( )

A.
十六进制数34
B.
十进制数55
C.
八进制数63
D.
二进制数110010

【多选题】监控平台有哪些功能?

A.
管理设备
B.
用户权限管理
C.
数据流管理
D.
录像存储管理
E.
与其它系统联动