Difference between array type and array allocated with malloc
问题 Today I was helping a friend of mine with some C code, and I\'ve found some strange behavior that I couldn\'t explain him why it was happening. We had TSV file with a list of integers, with an int each line. The first line was the number of lines the list had. We also had a c file with a very simple \"readfile\". The first line was read to n, the number of lines, then there was an initialization of: int list[n] and finally a for loop of n with a fscanf. For small n\'s (till ~100.000),