void func(int n) { int i; int a[10]; for (i = 0; i < n; i++) a[i] = 2; } int main() { func(10); return 0; }