asked 34.3k views
4 votes
Int [] val = { 3, 10, 44 };

val[1] = 55;


1) 55 10 44

2) 3 10 55

3) 3 55 10

4) 3 55 44

Q1

asked
User Mthakuri
by
8.2k points

1 Answer

6 votes

Answer:

1)

Step-by-step explanation:

val[1] represents the first value of the table 'val', which at first is 3. The table val is at first 3, 10, 44.

val[1] = 55; means that we just changed that first value (3) in the table to 55.

What's the table now?

55, 10, 44, rather than 3, 10, 44

answered
User Miqh
by
7.6k points