CJCoding With Joseph
15free / daySign inCreate account

Point at a Test Score and Print It

The variable score is already declared and set to 87, and the first line of output is already written for you. Declare a pointer named p that holds the address of score, then print the value again by going through the pointer. Do not print the address itself.

Expected Output:

Score: 87
Through pointer: 87

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
Pointers
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (cout, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.