Driver code
| 64 | |
| 65 | // Driver code |
| 66 | int main(void) |
| 67 | { |
| 68 | int arr[] = {2, 3, 4, 10, 40}; |
| 69 | int n = sizeof(arr) / sizeof(arr[0]); |
| 70 | int x = 10; |
| 71 | int result = exponentialSearch(arr, n, x); |
| 72 | (result == -1) ? cout << "Element is not present in array" : cout << "Element is present at index " << result; |
| 73 | return 0; |
| 74 | } |
nothing calls this directly
no test coverage detected