What design is more efficient?
int a, n = 10; for(a = 0; a < n; a++) { //......... }
int n = 10; for(int a = 0; a < n; a++) { //......... }
My opinion is that if a cycle is used once, then it is better to declare (int a), and if it’s several times, then just (a) everywhere. I think connected with memory, help me figure it out.