皮皮学,免费搜题
登录
搜题
【简答题】
计算两个矩阵的乘积。下,请填空。 说明:1.当矩阵A的列数等于矩阵B的行数时,A与B可以相乘。 2.矩阵C的行数等于矩阵A的行数,C的列数等于B的列数。 3.乘积C的第m行第n列的元素等于矩阵A的第m行的元素与矩阵B的第n列对应元素乘积之和。 #include "stdio.h" #define M 2 #define P 3 #define N 4 void fun(int a[M][P], int b[P][N],int c[M][N]) { int i,j,k,s; for(i=0;i { for(j=0;j { s= [填空(1)] ; for (k=0;k s+= [填空(2)] ; c[i][j]=s; } } } int main() { int a[M][P], b[P][N],c[M][N]; int i,j,k; printf("Input array a[2][3];\n"); //输入数组A的值 for(i=0;i { for(k=0;k scanf("%d",&a[i][k]); } printf("Input array b[3][4];\n"); //输入数组B的值 for(i=0;i { for(k=0;k scanf("%d",&b[i][k]); } fun(a,b,c); printf("Output array c[2][4]:\n"); //输出数组C的值 for(i=0;i { for(j=0;j { printf("%5d",c[i][j]); } printf("\n"); } return 0; } A. 0 B. a[i][k]*b[k][j]
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【判断题】传统的4个比特位表示的数据,可以有16种不同组合,但每次只能取1种。
A.
正确
B.
错误
【简答题】Read passage and fill in the blanks with following words and expession tend to complete real world leave make better use of Do you think that work wi...
【单选题】下列水溶液中 , 酸性最弱的是
A.
0.1mol/L HCl
B.
0.1mol/L HCN(K a =4.93 × 10 -10 )
C.
0.1mol/L HCOOH (K a =1.7 × 10 -4 )
D.
0.1mol/L HAc (K a =1.76 × 10 -5 )
【单选题】下列关于数据库管理技术的发展的描述中,不正确的是( )。
A.
数据库管理技术大致经历了人工管理、文件系统、数据库系统和高级数据库系统 4个阶段
B.
数据库管理技术的4个阶段程序和数据都是独立的
C.
分布式数据库和面向对象数据库管理技术属于高级数据库技术
D.
数据库系统阶段数据库中的数据可以被多个用户、多个应用程序共享
【简答题】your recommendation is of no use at all to those who do not want to listen.
【判断题】Those who are not versed in foreign exchange terminoogy can do a better job if they restrict their use of the expressions"favourable" and "unfavourable" or "appreciate" and "depreciate".
A.
正确
B.
错误
【单选题】下列水溶液中,酸性最弱的是( )
A.
0.1mol/L HCl
B.
0.1mol/L HCN( ( Ka=4.93×10 -10 )
C.
0.1mol/L HCOOH( ( Ka=1.70×10 -4 )
D.
0.1mol/L HAc( ( Ka=1.76×10 -5 )
【单选题】数据库管理技术的发展经历了由低级到高级的过程。分布式数据库、面向对象数据库等新型数据库属于( )。
A.
人工管理阶段
B.
文件系统阶段
C.
数据库系统阶段
D.
高级数据库技术阶段
【单选题】下列水溶液中,酸性最弱的是()
A.
0.1mol/LHCl
B.
0.1mol/LHCN(KA=4.93×10-10)
C.
0.1mol/LHCOOH(KA=1.7×10-4)
D.
0.1mol/LHAC(KA=1.76×10-5)
【简答题】I. Choose the best word and use its proper form to fill in the blank. sketch mystery religious renewable feature monument (4) He was a lovable man , and his teachings can have much for those who do no...
相关题目: