How do I change this to pointer notation?

Code:#include <stdio.h> int addarray(int arr[],int size); void main() { int array1[10] = {1,2,3,4,5,6,7,8,9,10}; int array2[4] = {0,0,0,0}; printf("The sum of array1 = %d\n", addarray(array1,10)); printf("The sum of array2 = %d\n", addarray(array2,4)); } int addarray(int arr[],int size) { int sum = 0 , n ; for( n = 0 ; n < size ; n++ ) { sum += arr[n]; } return sum; }