title: C recursive program to find the maximum element from array
body: <p>So I have a task in my training that sounds like this:
  Write a subprogram that will recursively find the maximum element from an array and also write the main function to call it.
  What I failed to fully understand is what recursion is. I wanted to ask you guys if my code is recursive or not. And if not what changes should I make/ what recursion really means?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int find_maximum(int[], int); 
  
  int main() {
    int c, array[100], size, location, maximum;
  
    printf("Input number of elements in array\n");
    scanf("%d", &amp;size);
  
    printf("Enter %d integers\n", size);
  
    for (c = 0; c &lt; size; c++)
      scanf("%d", &amp;array[c]);
  
    location = find_maximum(array, size);
    maximum  = array[location];
  
    printf("Maximum element location = %d and value = %d.\n", location + 1, maximum);
    return 0;
  }
  
  int find_maximum(int a[], int n) {
    int c, max, index;
  
    max = a[0];
    index = 0;
  
    for (c = 1; c &lt; n; c++) {
      if (a[c] &gt; max) {
         index = c;
         max = a[c];
      }
    }
  
    return index;
  }
  </code></pre>
  
  <p>Thank you all for your time!</p>