← const Correctness with Pointers

Read-Only Print

easy

Complete describe so it prints the value p points to, in the form Value: 7. p’s type is const int * – you’re only ever reading through it here, so this should feel identical to dereferencing any other pointer; const just makes the “read-only” intent explicit and compiler-checked.

Your solution

"Run" uses the sample stdin ("7"). "Submit" checks your code against all 3 test cases.

Test results

Submit your solution to run it against all test cases.

Hints

    Reference solution