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