MCPcopy Create free account
hub / github.com/CodeWithHarry/The-Ultimate-C-Programming-Course / swap

Function swap

Chapter 6/06_swap.c:5–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3void swap(int* a, int* b);
4
5void swap(int* a, int* b){
6 int temp;
7 temp = *a;
8 *a = *b;
9 *b = temp;
10}
11int main(){
12 int a = 4, b = 6;
13 swap(&a, &b);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected