← Back to Pointers
Question 670
Point at a Test Score and Print It
Point at a Test Score and Print It
The variablescoreis already declared and set to 87, and the first line of output is already written for you. Declare a pointer namedpthat holds the address ofscore, 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
Sign in to use hintsTopics:
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.