typedef struct { int elem[MAXSIZE]; int last = -1; }SeqList;
时间: 2024-05-01 11:16:26 浏览: 121
struct数据结构例程教案
This code is not valid in C, as struct members cannot be initialized inside the struct declaration. The correct way to define this struct would be:
```
typedef struct {
int elem[MAXSIZE];
int last;
} SeqList;
SeqList myList;
myList.last = -1;
```
阅读全文