Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ swap
Function
swap
Arrays/31_Menu_for_Array.c:45–51 ·
view source on GitHub ↗
Swap Function
Source
from the content-addressed store, hash-verified
43
44
//Swap Function
45
void swap(int*p,int*q)
46
{
47
int temp;
48
temp=*p;
49
*p=*q;
50
*q=temp;
51
}
52
53
//Display Function
54
void Display(struct array arr)
Callers
7
LinearSearch
Method · 0.70
Reverse2
Method · 0.70
Rearrange
Method · 0.70
LinearSearchSwapToPrev
Function · 0.70
LinearSearchSwapToHead
Function · 0.70
Rev2
Function · 0.70
Arrange
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected