I want to write code for the function that create empty queue with no element
Is my function a correct ?Code:#include<stdio.h>
#include <stdlib.h>
struct Queue {
struct Node *first;
struct Node *last;
};
void EmptyQueue(struct Queue *q) {
q->front = NULL;
q->last = NULL;
}