Step 16

What does this program do? Step through it, or click on the Run button to step continuously

Program 16-2

Change this so that it fills the array with 1

Program 16-2

Change it so that it sets elements 5 to 10 with the value 2

Program 16-3

Change it so that every second element ( 0,2,4,6..14 inclusive) get the value 3

Program 16-4

Change it so the array is filled with 10, backwards - that is g[14] first, then g[13], g[12] and so on, g[0] last.

Program 16-5

Copy array g into h

Index

Input:

Output:

Line

Statement

1

Delete Delete

2

Delete Delete

3

Delete Delete

4

Delete Delete

5

Delete Delete

6

Delete Delete

7

Delete Delete

8

Delete Delete

9

Delete Delete

10

Delete Delete

11

Delete Delete

12

Delete Delete

13

Delete Delete

14

Delete Delete

15

Delete Delete

16

Delete Delete

17

Delete Delete

18

Delete Delete

19

Delete Delete

20

Delete Delete

Variable

Now

a

 

b

 

c

 

d

 

e

 

Index: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
g: a0 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0
h: a0 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0