0

Intro question

Why is it that in most C programs, there must be the constant 'i' ?,can I replace it?

21st May 2025, 3:33 AM
Elad Nkengbeza
2 Respostas
+ 8
if you mean the i in for loops for(int i=0;...) yes, you can replace it. it's just convention. but it makes reading the code easier, because it's familiar, you don't have to pause and think about it. so maybe don't change it unless necessary.
21st May 2025, 3:55 AM
Bob_Li
Bob_Li - avatar
+ 1
Thanks
22nd May 2025, 5:11 AM
Elad Nkengbeza
OSZAR »