title: Filling array in C by using functions
body: <p>Okay, so I am calling function fill_arrays like this:</p>
  
  <pre><code>fill_arrays(&amp;data1, &amp;data2, &amp;size1, &amp;size2);
  </code></pre>
  
  <p>fill_arrays looks like this:</p>
  
  <pre><code>void fill_arrays(int **data1, int **data2, int *size1, int *size2){
     *size1 = get_size(*size1, 1);
     *size2 = get_size(*size2, 2);
     *data1 = malloc(*size1 * sizeof(int *));
     *data2 = malloc(*size2 * sizeof(int *));
     input_data(&amp;data1, *size1, 1);
  }
  </code></pre>
  
  <p>In input_data function I would like to assign some numbers to an array:</p>
  
  <pre><code>void input_data(int **data, int size, int index){
     *data[5] = 5;
  }
  </code></pre>
  
  <p>The problem is, I am completely lost with pointers... Maybe you can tell me how should I call function input_data in order to be able to assign some numbers to data array?</p>