Hi
I forgot the place from where I got this program... coz i was searching for GC related questions in internet.
I thought i understood GC very well and so i wanted to test myself, but unfortunately I found this one very difficult to solve. I got confused.
I thought only the object referenced by c will be eligible for GC.
but now I understood.
Thanks micha
It was a good explanation.