Can someone please tell me if I am doing this right?
typedef struct {
int *stk;
int *sp;
} StackType;
I am supposed to define a StackType
Can someone please tell me if I am doing this right?
typedef struct {
int *stk;
int *sp;
} StackType;
I am supposed to define a StackType
This is absolutely correct.
And there are two options:
struct
keyword to define variables (struct MyStruct {...}; struct MyStruct myVar;
)MyStruct myVar;
);