Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C language shaping array problem
C language shaping array problem
There is no' /0' after shaping the array, and only the ending character exists in the string array. If you define an array with three elements, you can define and access it like this:

int a[3] ={ 1,2,3 };

Then:

a[0]= 1;

a[ 1]= 2;

a[2]= 3;