静态:
#define maxsize 50
Typedef struct {
Elemtype data[Maxsize];
Int length;
}sqlist;
动态:
#define maxsize 50
Typedef struct {
Elemtype *data;
Int maxsize,length;
}seqlist;
静态存储不可扩展存储空间,动态存储可用malloc、free函数扩展和删除存储空间。
L.data=(Elemtype *) malloc(sizeof(Elemtype)*Initsize)