Namespaces
Variants
Views
Actions

Talk:c/language/for

From cppreference.com

From C99, declaring variables are allowed inside for loop.

for(int i=0; i < n ; ++i){ printf("%d ",i) }