MCPcopy Create free account
hub / github.com/ShiqiYu/CPP / main

Function main

week06/examples/param-pointer.cpp:17–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17int main()
18{
19 int num1 = 20;
20 int num2 = foo1(num1);
21 cout << "num1=" << num1 << endl;
22 cout << "num2=" << num2 << endl;
23
24 int * p = &num1;
25 int num3 = foo2( p );
26 cout << "num1=" << num1 << endl;
27 cout << "*p=" << *p << endl;
28 cout << "num3=" << num3 << endl;
29
30 return 0;
31}

Callers

nothing calls this directly

Calls 2

foo1Function · 0.85
foo2Function · 0.85

Tested by

no test coverage detected