Increment in Place
Medium · Pointers
A pointer receiver (or a *int argument) lets a function update the caller's value. Inc(p *int) should add 1 to *p.
RunInc(n) is already written.
Next: Comma-OK Lookup
Medium · Pointers
A pointer receiver (or a *int argument) lets a function update the caller's value. Inc(p *int) should add 1 to *p.
RunInc(n) is already written.
Next: Comma-OK Lookup