Looping an array and making it empty. Why it behaves wierd?

Related searches