L
Logan Lee
ORIGINAL CODE:
typedef struct StackStruct *Stack;
typedef void *StackElt;
StackElt top(Stack thisStack);
ANOTHER CODE:
typedef struct StackStruct Stack;
typedef void *StackElt;
StackElt top(Stack thisStack);
-
Is ANOTHER CODE correct? If it is correct, then in what cases would you use
ANOTHER CODE and in what cases would you use the other one?
typedef struct StackStruct *Stack;
typedef void *StackElt;
StackElt top(Stack thisStack);
ANOTHER CODE:
typedef struct StackStruct Stack;
typedef void *StackElt;
StackElt top(Stack thisStack);
-
Is ANOTHER CODE correct? If it is correct, then in what cases would you use
ANOTHER CODE and in what cases would you use the other one?