title: Struct of Matrices C
body: <p>I have this struct:</p>
  
  <pre class="lang-c prettyprint-override"><code>typedef struct {
      int n;
      bool **a;
      bool **b;
      bool **c;
  } matrices_struct;
  </code></pre>
  
  <p>Then I want to assign a matrix a for a given struct:</p>
  
  <pre class="lang-c prettyprint-override"><code>void multiplyMatrix(int n, int numOfThreads, bool a[n][n], bool b[n][n], bool c[n][n]){
      ...
          matrices_struct *ms = malloc(sizeof(*ms));
          ms-&gt;a = a; //doesn't work
  ...
  }
  </code></pre>
  
  <p>Is it possible to achieve this?</p>