fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int a[2][2] = {{1,2},{3,4}};
  6. int b[2][1] = {{1},{3}};
  7. int c[2][1];
  8.  
  9. c[0][0] = a[0][0] * b[0][0] + a[0][1] * b[1][0];
  10. c[1][0] = a[1][0] * b[0][0] + a[1][1] * b[1][0];
  11. printf("{%d,%d}\n", c[0][0], c[1][0]);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
{7,15}