MCPcopy 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
45void swap(int*p,int*q)
46{
47 int temp;
48 temp=*p;
49 *p=*q;
50 *q=temp;
51}
52
53//Display Function
54void Display(struct array arr)

Callers 7

LinearSearchMethod · 0.70
Reverse2Method · 0.70
RearrangeMethod · 0.70
LinearSearchSwapToPrevFunction · 0.70
LinearSearchSwapToHeadFunction · 0.70
Rev2Function · 0.70
ArrangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected