STACK USING LINKED LIST
bca third semester stack using linked list program data structure
#include<stdio.h>
#include<conio.h>
#include<malloc.h>
struct stack
{
int data;
struct stack *next;
};struct stack *nw, *temp, *top;
void push()
{
int item;
clrscr();
printf("Enter Element : ");
scanf("%d",&item);
if(top->data...
CREATE STACK USING ARRAY
bca third semester
Create stack using Array
program data structure
This Implementation is correct you can use our program
if you like please share with your BCA Friend.
#include<stdio.h>
#include<conio.h>
#define max 5
void push();
int pop();
void display();
int stack;
int top=-1;
void main()
{
int n,item,ch,ele;
clrscr();
do
{
clrscr();
printf("1. Push...