Code:
#include <stdio.h>

int main()
{
 int bil;

scanf("%d", &bil);

int kotak[bil];

return 0;
}
if you run it in devc++ it will work.

can someone explain why this can be happening?

my lecturer also doesn't know about this