Program to find the sum of elements of a matrix using pointers and functions in c?
Answers
Answered by
5
Explanation:
The program output is also shown below. * C program to read N integers and store them in an array A. * Find the sum of all these elements using pointer. #include <malloc.h> int i, n, sum = 0; int *a; printf("Enter the size of array A \n"); scanf("%d", &n); a = (int *) malloc(n * sizeof(int).
Similar questions