Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Can you give an example of one-dimensional plastic array and two-dimensional plastic array? 1×m plastic two-dimensional array, thank you.
Can you give an example of one-dimensional plastic array and two-dimensional plastic array? 1×m plastic two-dimensional array, thank you.
Give an example of each.

One-dimensional plastic array:

1.2.3.4.5.6.7.8.9. 10

C language defines this array:

int a[ 10]={ 1,2,3,4,5,6,7,8,9, 10 };

Second, the two-dimensional plastic array (3×4):

1.2.3.4.5

2.3.4.5.6

3.4.5.6.7

C language defines this array:

int a[][5]={{ 1,2,3,4,5},{2,3,4,5,6},{3,4,5,6,7 } };

Three, 1×m plastic two-dimensional array:

0. 1.2.3.4.5.6.7.8.9

C language defines this array:

int a[ 1][ 10]={0, 1,2,3,4,5,6,7,8,9 };

Right?