2nd option is more optimized.In first option it will always check for cond2.You can change second if to else if in option1 to optimize it.
↧
2nd option is more optimized.In first option it will always check for cond2.You can change second if to else if in option1 to optimize it.