+ 2

Why do people use int i alot?

i see alot of code using "i" as a symbol any reason for that?

11th Jul 2017, 2:09 PM
D_Stark
D_Stark - avatar
3 Respostas
+ 3
i = increment Just a generic variable to the increment counter. You can use whatever variable you want. It's just something that was always taught, so people always used it because everyone was taught the same. It makes it easier to deal with because you know it's that variable for the loop, and not useful toward anything else.
11th Jul 2017, 2:16 PM
AgentSmith
+ 2
i and j are used commonly in loops as counters Why? I don't know
11th Jul 2017, 2:12 PM
Andrés04_ve
Andrés04_ve - avatar
0
thanks
11th Jul 2017, 3:32 PM
D_Stark
D_Stark - avatar