Sum of large numbers in an array

when we want to add all numbers in an array, I wrote this code http://ide.codingblocks.com/#/s/14719 and it works (although it fails 1 test case in hacker rank). But if I want to add large numbers in an array like 1000000001 1000000002 1000000003 1000000004 1000000005 with constraints 1<=n <=10 and 0 <=ar[i] <= 10^10 is this code still valid. I guess the only change I will make is I will take
int arr[] as long long int arr[] in line number 6 and rest of the code will remain same. RIGHT?