MCPcopy 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
7int 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
12int main(){
13 int x = 1, y=6;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected