Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ swap
Function
swap
Arrays/08_Improving_Linear_search.c:15–20 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
13
printf(
"%d "
,arr.A[i]);
14
}
15
void swap(int *x,int *y)
16
{
17
int temp=*x;
18
*x=*y;
19
*y=temp;
20
}
21
int LinearSearch(struct Array *arr,int key)
22
{
23
int i;
Callers
1
LinearSearch
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected