Rajat Malakar Pages

Thursday, 2 August 2012

Circuler Queue

#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#define maxsize 8
int arr[maxsize];
int front=-1,rear=-1;

void insert();
int  delete1();
void display();

main()
{
int ch,c,t;

    do
  {
         printf("\n 1.insertion ");
         printf("\n 2.delete ");
         printf("\n 3.Display");
         printf("\n 4.Exit");
         printf("\n Enter the choice");
         scanf("%d",&c);
        
        
     switch(c)
     {        
             case 1: insert();
                     break;
             case 2:
                 
                  t=delete1();
                  printf("The item deleted is : %d",t);
                     break;

No comments:

Post a Comment

Thanks for Your Comment.

satta king 786