Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ Swap
Function
Swap
Arrays/12_Rotate_and_Shift.cpp:17–22 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
15
16
}
17
void Swap(int *x,int *y)
18
{
19
int temp=*x;
20
*x=*y;
21
*y=temp;
22
}
23
24
void Reverse(struct Array* arr) // function for reversing the array
25
{
Callers
1
Reverse1
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected