#include <stdio.h> int main() { int i; for ( i=0; i<5; i++ ) { int i = 10; printf ( "%d", i ); i++; } return 0; }
此变量i在for循环外声明,并在for循环内再次声明和初始化.C如何允许多个声明?
i
for
c variable-declaration
c ×1
variable-declaration ×1