Project 1: C language example code implementing matrix multiplication. It contains three functions. 2D array creation function Generated array output function matrix multiplication function
#include <stdio.h> #include <stdlib.h> int **array; int **create2DArray(int row, int col) { int **array = malloc(row * sizeof(int *)); for (int i = 0; i < row; i++) { array[i] = malloc(col * sizeof(int)); } return array; } int **get2DArray(int row, int col) { int **array = create2DArray(row, col); for (int i = 0; i < row; i++) { for (int j = 0; j < col; j++) { array[i][j] = rand() % 10; } } return array; } void print2DArray(int **array, int row, int col) { for (int i = 0; i < row; i++) { for (int j = 0; j < col; j++)