Why performance is improved when invariant is moved out of the loop?
(Отметьте один правильный вариант ответа.)
Варианты ответа
because it is more effective to calculate them in another loop
because this values stay unchanged each iteration and could be evaluated outside of the loop only once(Верный ответ)
because invariant code has no sense and could be deleted