Lab_Capture-4 :: Queue
#include <stdio.h> typedef struct head { struct node *front; int count; struct node *rear; }HEAD; typedef struct node { int data; struct node *next; }NODE; //start PrintQueue void PrintQueue(HEAD *headNode) { NODE *printNode=headNode->front; int numberOfQueue = headNode->count; int tempData[numberOfQueue]; printf("\n———-Print Queue———–\n"); while(printNode!=NULL) { //get data into array for display tempData[numberOfQueue-1] = printNode->data; printNode […]