Knaph

Pointers, Methods, and Interfaces41 of 62

Double

Complete double(p *int) so it doubles the value p points to, in place — dereference p with *p and modify it. main already passes &x and prints x afterward.

Sign in to try this exercise.