As I know, an array needs to have a specific size before compiling time in c.
I wonder why this code still works?
int s; printf(\"enter the array si
If you need to allocate an array with dynamic size, you have to get it from the heap, with malloc().
int *a = malloc(sizeof(int) * s)