A
A
alexgreben2014-07-07 14:40:39
Java
alexgreben, 2014-07-07 14:40:39

What value will be in the variable i ?

int a[] = {1, 2, 3, 4}; int i = a[2]; //

Answer the question

In order to leave comments, you need to log in

6 answer(s)
Y
Yuri Lobanov, 2014-07-07
@alexgreben

3

E
excit3r, 2014-07-07
@excit3r

Is your compiler broken?
How many times will the loop body be executed?

S
Sergey, 2014-07-07
Protko @Fesor

did you decide to pass some kind of test in this way?

B
bimeg, 2014-07-07
@bimeg

3

J
javanub, 2014-07-08
@javanub

Now vlad20012 will come and say that you need to read Schildt :)

T
thatscriptkid, 2014-07-10
@thatscriptkid

Array elements are numbered from 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question