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
Write incrementAll so it accepts values and n = 4, adds 1 to every element through the array parameter, and prints the updated array as 5 3 8 2.
OUTPUT
Sample5 3 8 2
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.