Because var is not a symbol in that snippet. var1, var2 and var3 are. If you want to do that you can do something like:
vars[] = {12, 16, 9};
for(int i = 0; i <= 3; ++i)
vars[i] += 1;
Type: Posts; User: mramazing
Because var is not a symbol in that snippet. var1, var2 and var3 are. If you want to do that you can do something like:
vars[] = {12, 16, 9};
for(int i = 0; i <= 3; ++i)
vars[i] += 1;