How to create fifo queue ?
I made this attempt
Code:#include<stdio.h> #include<stdlib.h> struct Node { int data; struct Node *next; }; int main() { struct Node* Head = NULL; struct Node* Tail = NULL; Head = (struct Node*)malloc(sizeof(struct Node)); Tail = (struct Node*)malloc(sizeof(struct Node)); Head->data = 1; head->next = Tail; return 0; }