C program to find sum of array elements using Dynamic Memory Allocation
This program is an example of Dynamic Memory Allocation, here we are declaring memory for N array elements at run time using malloc() - which is used to declare memory for N blocks at run time, we will read N elements, will print them and also print the sum of all elements.
Consider the program:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer