Update queue.c

this will include the declaration and initialization of the head as well as the tail node, it will also have the definition of node.
This commit is contained in:
Arihant kumar jain 2024-01-19 20:03:50 +05:30 committed by GitHub
parent e5dad3fa8d
commit 0557bd82d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,17 @@
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// INCLUDES // INCLUDES
#include "include.h"; #include "include.h";
////////////////////////////////////////////////////////////////////////////////
// Node structure
struct node{
int data;
struct node* next;
struct node* pre;
};
/////////////////////////////////////////////////////////////////////////////////
//initialising head and tail
struct node *head=NULL;
struct node *tail=NULL;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// GLOBAL VARIABLES // GLOBAL VARIABLES
int count; int count;