[Solved] What is the variable ‘i’ mean after the array declaration


It is declaration of int type variable. But it is more better to declare that int i in for like this

for(int i = 0; i < n; ++i)

Also more whitespaces increase code readability

You can declare variables like this
TYPE var1, var2, var3, ..., varN;

And all variables will have same type

4

solved What is the variable ‘i’ mean after the array declaration