Cloning multidimension arrays results in shallow cloning. Have understood that from below exampls. Can someone explain using diagram - (like Corey explained the GC concepts on this site...) as to how the shallow copying is working
Produces the following output: false I2:79 I3:3 false I22:79 I33:79
I don't understand your example. You clone() I2, then test for equality of reference between I2 and I3, which is going to be false. Then you change the value of I2 and print it. Then you print out I3.
What are you trying to demonstrate?
Make visible what, without you, might perhaps never have been seen. - Robert Bresson