CJCoding With Joseph
15free / daySign inCreate account

The array line holds {5, 10, 15, 20, 25, 30, 35, 40}. Pointer start points at line[2] and pointer end points at line[6].

Fill in the three TODO lines. Cast each pointer subtraction before printing with %d, for example (int)(end - start).

Expected output

Elements apart: 4
Start index: 2
End index: 6

= newline. The output ends with a newline, so 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.