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

Function foo

week05/examples/const-pointer.cpp:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2using namespace std;
3
4int foo(const char * p)
5{
6 // the value that p points to cannot be changed
7 // play a trick?
8 char * p2 = p; //syntax error
9 //...
10 return 0;
11}
12
13int main()
14{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected