Quantcast
Channel: The Fluent Admin
Viewing all articles
Browse latest Browse all 10

Operations on Stacks in C

$
0
0
The structure of a stack #define MAX_STACK 100 #define EMPTY -1   typedef struct _stack { int contents[MAX_STACK]; int topPointer; } stack; Creating a new stack void createStack (stack *s) {   (*s).topPointer = EMPTY;   } Getting the top … Continue reading

Viewing all articles
Browse latest Browse all 10

Trending Articles