Array

int a[10];

or

#define SIZE 10

int a [SIZE];

Tyical Operations

1,access:

for loop a[i]

2,left/right shift

for loop,a[i] = a[i + 1],or a[i] = a[i - 1]。Attention to the order of sequence of operations

Remarks:

1,In case of array as function argument,the array can be accessed in function, because the array name itself is the address of the array.

2,array can not be assigned such as b = a;,INVALID!

3,Do NOT use int a[n];!!!

You have no rights to post comments