1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
#include <stddef.h>
#include <stdio.h>

void
initMatrix(size_t m, size_t n,
           double *A,
           ptrdiff_t incRow, ptrdiff_t incCol)
{
    // your code here
}

// your code for function printMatrix here


#define MAX_ROWS    100
#define MAX_COLS    100

double A[MAX_ROWS*MAX_COLS];

int main()
{
    size_t m = 5;
    size_t n = 8;

    size_t incRow = n;
    size_t incCol = 1;


    initMatrix(m, n, A, incRow, incCol);
    printMatrix(m, n, A, incRow, incCol);

    // make additions here:

    return 0;
}