Will my compiler ignore useless code?
Well, your variables i and prevSpec_OilCons, if not used anywhere will be optimized away, but not your loop. So if your code looks like: static void Main(string[] args) { int[] TestRunTime = { 1, 2, 3 }; int i = 0; for (int j = 0; j < TestRunTime.Length; j++) { } double prevSpec_OilCons = … Read more