Skip to content

Instantly share code, notes, and snippets.

View justdoGIT's full-sized avatar

Kamal Pandey justdoGIT

View GitHub Profile
@mycodeschool
mycodeschool / Stack_ArrayImplementation.C
Last active April 7, 2024 23:28
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.