Question: 1.) Write a function called canMakeSum() that takes a sorted array of n integers and determines whether two distinct elements of the array add up
1.) Write a function called canMakeSum() that takes a sorted array of n integers and determines whether two distinct elements of the array add up to some specified value, "key". If so, return 1. Otherwise, return 0. The function signature is:
int canMakeSum(int *array, int n, int key);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
