Posts

Image
DOUBLE LINK LIST COMPLETE// #include<conio.h> #include<stdio.h> #include<stdlib.h> struct node{ int data; struct node* link; }; int main() {        struct node *ptr3,*temp2 ,*head=NULL,*ptr=NULL,*front=NULL,*rear=NULL,*temp=NULL,*ptr2=NULL;//pointer declaration        int n;        printf("circular queue program is created by mine\n\n");        printf("===========================================================================\n");        while(1)        {        printf("press the key for doing operations in our program\n");        printf("1. enqueue\n2. dequeue\n3. view the queue\n4. exit\n");        scanf("%d",&n);        switch(n)        { case 1: temp=(struct node*)malloc(sizeof(struct node)); //memory allocate...

Array based stack operations by easily.

Image
STACK UNDERFLOW  Alll Coding Solutions How can we create  an array based  stack with some operation  . Code of program. #include< stdio.h > #include<conio.h>  int stack[100],choice,n,top,x,i; void push(); void pop(); void display(); int main() {      //clrscr();      top=-1;      printf("\n Enter the size of STACK[MAX=100]:");      scanf("%d",&n);      printf("\n\t STACK OPERATIONS USING ARRAY");      printf("\n\t--------------------------------");      printf("\n\t 1.PUSH\n\t 2.POP\n\t 3.DISPLAY\n\t 4.EXIT");      do      {          printf("\n Enter the Choice:");          scanf("%d",&choice);       ...