Programming Question

Question: Here's a strange loop. What is it trying to do, and how could you make it clearer? For ( int I = 0; I < MyControl.TabPages.Count; i++) { MyControl.TabPages.Remove (MyControl.TabPages[i] ); i--;}

From: Ace the Programming Interview [Guiness]

Subject: Code Quality

Load Another Question


Select a Subject