Month: December 2015

02
Dec
2015

What does it actually mean in an array limit 0≤A[i]≤10^10 ?

Its means that the value of A[i] must be remained between 0 to 10000000000

01
Dec
2015

HackerRank – Simple Array Sum

#include<stdio.h> int main() { int a[1000],n,i,sum=0; scanf(“%d”,&n); for(i=0;i<n;i++) { scanf(“%d”,&a[i]); sum=sum+a[i]; } printf(“%d”,sum); return 0; }