/*This C Program calculates the sum of array elements using pointer. The program uses the pointer to traverse the array and adds up the element values there.*/ /* * C program to read N integers and store them in an array A. * Find the sum of all these elements using pointer. */ #include #include void main() { int i, n, sum = 0; int *a; printf("Enter the size of array A \n"); scanf("%d", &n); a = (int *) malloc(n * sizeof(int)); printf("Enter Elements of First List \n"); for (i = 0; i < n; i++) { scanf("%d", a + i); }