title: Accessing array pointer in separate function
body: <p>Say I have an array of n characters. 
  I want to pass the amount, and a pointer to the array to a function, to check for the biggest value in the array. However, I'm unsure how to access the values from the pointer.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int max(int *numbers, int size) {
    int temp = size;
    for (int i=0;i&lt;temp;i++) {
     /*How do i access the array values?*/
    }
    return 0;
  }
  
  int main(void) {
    int amount;
    int Array[amount];
      int *ptr;
    printf("Enter size of array:");
    scanf("%d",&amp;amount);
    ptr = &amp;Array[amount];
  
    for(int i=0;i&lt;amount;i++) {
      scanf("%d",&amp;Array[i]);
    }
    printf("Number 2 in array: %d",Array[1]);
    printf("\n calling function \n");
    max(ptr,amount);
    return 0;
  }
  </code></pre>