Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
void swap(int* a, int* b);
4
5
void swap(int* a, int* b){
6
int temp;
7
temp = *a;
8
*a = *b;
9
*b = temp;
10
}
11
int main(){
12
int a = 4, b = 6;
13
swap(&a, &b);
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected