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

Function main

Chapter 5/01_function.c:13–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13int main(){
14 int a = 1;
15 int b = 2;
16
17 // int c = a + b;
18 // printf("The sum is %d\n", c);
19 int c = sum(a,b); // Function call
20 printf("%d\n", c);
21
22 int a1 = 12;
23 int b1 = 23;
24
25 // int c1 = a1 + b1;
26 // printf("The sum is %d\n", c1);
27 int c1 = sum(a1,b1); // Function call
28 printf("%d\n", c1);
29
30 int a2 = 2;
31 int b2 = 27;
32
33 // int c2 = a2 + b2;
34 // printf("The sum is %d\n", c2);
35 int c3 = sum(a2, b2); // Function call
36 printf("%d\n", c3);
37
38 return 0;
39}

Callers

nothing calls this directly

Calls 1

sumFunction · 0.70

Tested by

no test coverage detected