calculate sum of all array element by using dynamic array,sum of elements in an array java,c program to find sum of array elements,write a program to find the sum of the corresponding elements in 2 arrays,c program to find sum of array elements using functions,c program to find sum of array elements using recursion,c program to find sum of array elements using pointers,wap to sort an array using pointers,using c language,
#include"stdio.h"
#include"conio.h"
#include"alloc.h"
void main()
{
int *p,i,n,sum=0;
clrscr();
printf("Enter the size of an array=");
scanf("%d",&n);
p=(int*)malloc(n*size(int));
for(i=0;i"n;i++)
{
printf("\n\nEnter %d number",i+1);
scanf("%d",p+i);
sum=sum+ *p+i;
}
printf("\n\n\nSum of Array is= %d",sum);
getch();
}