Originally posted by Kasak Tahilramani:
But even the 1st option is also char array.
in this code:
you have CREATED an array. that is an object. your array happens to hold arrays. those are also objects. but those "sub" arrays contain characters - more specifically, chars. a char is NOT an object.
now you have the statement
you are saying "return the second element of the first element of what c refers to". the first element of c is an array that holds chars. the second element of THAT array is a char. So, you are actually returning a single char, which is not an object.
[ December 28, 2006: Message edited by: fred rosenberger ]
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors