MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/searching/exponential_search.cpp:66–74  ·  view source on GitHub ↗

Driver code

Source from the content-addressed store, hash-verified

64
65// Driver code
66int 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}

Callers

nothing calls this directly

Calls 1

exponentialSearchFunction · 0.85

Tested by

no test coverage detected