Shailendra B. answered 03/21/19
Software technical lead with 28 years experience in Embedded/Linux/C
Invariant is generally used in the context of loops and you will hear the term "loop invariant". Loop invariant means its value is not going to change inside the loop so its more efficient to do its computation/calculation once before entering the loop.