title: Calculating sum of array elements
body: <pre><code>I have written below the code for calculating sum of array element 
  #include&lt;stdio.h&gt;
  #define max 10
  int main(){
     int arr[max]={214,542,455,145,1654,655,455,452,845,254};
     int sum=0,i;
     for(i=0;i&lt;10;i++)
       sum=sum+arr[i];
     printf("%d",sum);
     return 0;
  }
  </code></pre>
  
  <p>The above code is giving the required result but for large array, execution  time will be    more.So i want to know that is there any other efficient way to calculate the sum for very large array such as for max=100001 and element is arr[i]&lt;=10^9.
  Thanks in advance.</p>