title: Change value of global variable, C
body: <p>So I'm trying to find a way to update a variable and I've tried to make it global so I can change it easily. The only problem is it isn't working and i don't know how to fix it. </p>
  
  <p>I want SIZE_ARRAY to change to the value it becomes every time I call the remove_unimportant_words function.</p>
  
  <p><strong>Decleration:</strong></p>
  
  <pre><code>int SIZE_ARRAY = 480; 
  char list[SIZE_ARRAY][MAX];
  void remove_unimportant_words(char word[MAX],  int SIZE_ARRAY, char list[SIZE_ARRAY][MAX] , int j, int i);
  </code></pre>
  
  <p><strong>int main():</strong></p>
  
  <pre><code>while (fscanf(file, "%s", word) != EOF){
        remove_unimportant_words(word, SIZE_ARRAY, list,  j,  i);
        }
  </code></pre>
  
  <p><strong>Function:</strong></p>
  
  <pre><code>void remove_unimportant_words(char word[MAX], int SIZE_ARRAY, char list[SIZE_ARRAY][MAX] , int j, int i)
  {
  
      for (i=0; i&lt;SIZE_ARRAY; i++) {
          if(strcmp(list[i],word) == 0){
              for (j=i; j&lt;SIZE_ARRAY; j++) {
                  strcpy(list[j], list[j+1]);
              }
              SIZE_ARRAY--;
              i--;
          }
  
      }
      printf("%d\n", SIZE_ARRAY);
  }
  </code></pre>
  
  <p>I've basically tried printing the value of SIZE_ARRAY and it always starts at 480 when going in the function.</p>