How to realize the self-increment of an element in C language array?
Array a[i] is not initialized, so its initial value is uncertain. You need to declare it first, such as: a [10] = {0} or a [10] = {0, 0, 0, 0, 0} or a [1] = 0; a[2]= 0; a[3]= 0; a[4]= 0; a[5]= 0; a[6]= 0; a[7]= 0; a[8]= 0; a[9]= 0;