Is the memory to variable arrays allocated during run-time or compile-time in c?
int n;
printf("Enter size of the array: ");
scanf("%d",&n);
int a[n];
for(int i=0; i<n; i++)
{
a[i] = 0;
}
}
Is the memory to variable arrays allocated during run-time or compile-time in c?
int n;
printf("Enter size of the array: ");
scanf("%d",&n);
int a[n];
for(int i=0; i<n; i++)
{
a[i] = 0;
}
}