Difference between revisions of "Chapter 8, question 4 answer"

From CompSciWiki
Jump to: navigation, search
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
No. You have to declear another array and copy the element of array to the new one.
+
No.Here ''=='' operator [[Processing Arrays (using for loops)|compares]] the memory address of the reference variable not the contents of the objects referenced by the veriable.

Latest revision as of 04:03, 22 March 2007

No.Here == operator compares the memory address of the reference variable not the contents of the objects referenced by the veriable.