Question: int funxyx ( int arr [ ] , int x , int y ) { int xy = 0 ;for ( int i = 0

int funxyx(int arr[], int x, int y){int xy =0;for (int i =0; i < x; i++){int yx =0;for (int j = i; j < x; j++){yx += arr[j];if (yx == y){if (xy < j - i +1)xy = j - i +1;}}}return xy;}-----------------------------int funxyx(int arr[], int x, int y){int xy =0;int i =0;do {int j = i;int yx =0;do {yx += arr[j];if (yx == y){if (xy < j - i +1){xy = j - i +1;}}j++;} while (j < x);i++;} while (i < x);return xy;}These two functions will return the same value??

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!