0
error for variable question
It says variables must be declated before their use. They can actually be used at the time of their decleration (for loop for example)
4 Antworten
+ 5
in a loop you do have to declare a variable before or while using it. example
here we declare a local variable used in the for loop
for (int x=0; x<5; x++) printf("x=%d",x);
+ 1
it means if it never existed in the first place
+ 1
as in int a vs just using a without the int
0
The first parameter in a for loop is the decleration. You can not point to something that does not exist.