Hi Faiza,
Both your examples create an array with one element.
The first example stores the value '2' in
c[0] and the second example stores the value '3' in
c[0].
When you are working with arrays, code in {} acts as an
initializer. In both cases you've declared an array with no dimensions and
initialized it with one value which has the effect of creating a one dimensional array with one element.
Try the following code to see what happens:
I have some notes on arrays posted at
http://webhome.idirect.com/~jgriscti/lang/arrays.html and some on method invocation posted at
http://webhome.idirect.com/~jgriscti/oper/methods.html Hope they help.
------------------
Jane
The cure for boredom is curiosity.
There is no cure for curiousity.
-- Dorothy Parker