CJCoding With Joseph
15free / daySign inCreate account

Peek Ahead Using *(p + 1)

An int array readings holds {12, 25, 37, 48, 56}, and a pointer p already points at readings[0].

Fill in the three TODO lines so the program prints each label followed by the value it reaches through p.

Expected Output:

First: 12
Second: 25
Third: 37

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

Hints3 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 (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.