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) }

that is now documented --Cubbi (talk) 10:02, 23 December 2014 (PST)