Opening the reading…
Opening the reading…
PROGRAMMING FUNDAMENTALS › C++ FUNDAMENTALS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Model [4, 2] with a four-slot int array and a separate size variable. Append 7, 1, and 9, grow the backing array to eight slots when the array is full, and print the five elements in order.
OUTPUT
SampleElements: 4 2 7 1 9 Size: 5 Capacity: 8
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.