Get an array of integers and print them using array

Get 'N' number of elements from the user and display 'N' integers using an array


Implementation:

#include <stdio.h>

/* Size of the Array */
#define MAX 100000

int main(void) {
 int a[MAX],i,n;
 
 /* Get the number of elements from the user */
 scanf("%d",&n);
 
 /* Get the elements from the user */
 for(i=0;i<n;i++)
  scanf("%d",(a+i));
 
 /* Print the values entered by the user */ 
 for(i=0;i<n;i++)
  printf("%d ",*(a+i));
  
 return 0;
}