Returns true if the there is a subarray of arr [ ] with sum equal to ' sum ' otherwise returns false . Also , prints the result
int subArraySum ( int arr [ ] , int n , int sum ) { int curr_sum , i , j ;