Computer Science, asked by asmit50, 3 months ago

IfAr[ ] = {2, 5, 6, 8}; then what will be

the output of the following

statement?

System.out.println(Ar[2 + 1]);

Answers

Answered by jai696
5

The output will be 8

Explanation:

Ar[2 + 1] is the same as Ar[3] which is pointing to the location of 8.

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Answered by abhiavit144
0

The output will be 8

The output will be 8because it's number at index 3

The output will be 8because it's number at index 3

The output will be 8because it's number at index 3 Ar[2 + 1] is the same as Ar[3] which is pointing to the location of 8.

Similar questions