Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeWithHarry/The-Ultimate-C-Programming-Course
/ sum
Function
sum
Chapter 6/04_call_by_value.c:7–10 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5
6
7
int sum(int a, int b){
8
a = 6; // Sum function cannot change x using a because copy of x is provided to sum in a
9
return a + b;
10
}
11
12
int main(){
13
int x = 1, y=6;
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected