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
Create marks with the values 12, 7, 19, and 3. Print each index and value, then calculate and print the 16-byte element payload as marks.length * Integer.BYTES without including Java object overhead.
OUTPUT
Sampleindex 0: value 12 index 1: value 7 index 2: value 19 index 3: value 3 element payload bytes: 16
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.