Static Function Declared In A Loop