getArray()[index =2]++;
help you means help me
help you means help me
Rob
SCJP 1.4
Originally posted by Samith Nambiar:
getArray()[index = 2]++; // 1
The first thing that happens here is that index is set to 2
then you can look at it this way ... getArray() returns an integer array and the value of the
third element of that array is incremented by 1.
/SAmith
Originally posted by Samith Nambiar:
what is the output u expected ... can u pls explain what exactly u dont understand here
/SAmith
help you means help me
test=getArray()[index =2];//compiles well without ++
getArray()[index =2];//compiler error ----invalid expression.
SCJP2. Please Indent your code using UBB Code
Don't get me started about those stupid light bulbs. |