Skip to content

Instantly share code, notes, and snippets.

View javeedsanganakal's full-sized avatar

Javeed Sanganakal javeedsanganakal

View GitHub Profile
@javeedsanganakal
javeedsanganakal / Stack_ArrayImplementation.c
Created March 28, 2019 04:16
This is a basic array based implementation of stack data structure in C.
// Stack - Array based implementation.
// Creating a stack of integers.
#include<stdio.h>
#define MAX_SIZE 101
int A[MAX_SIZE]; // integer array to store the stack
int top = -1; // variable to mark top of stack in array
// Push operation to insert an element on top of stack.