As far as I know C doesn't support dynamic arrays. Here I implemented a dynamic array tasks with a variable length TASK_NO which I am fetching through scanf. The code is compiled without error and it is running properly. What can be the reason? Please clarify.
scanf("%d" , &TASK_NO);
int counter=TASK_NO;
struct task_info tasks[TASK_NO];
printf("total: %d\n", sizeof(tasks)/sizeof(tasks[0]));
`