Professional Documents
Culture Documents
if (isFullO) {
return 0;
}
rear = (rear + 1) % CAPACITY;
size++;
queue[rear] = data;
return 1;
Task 2:
if (isEmpty()) {
data = queue[front];
size--;
return data;
}
Task 3:
void display() {
int i;
}
}
Conclusion:
From this lab, I came learned the implementation of queue operation using
linear array and their use such as Enqueue & Dequeue Operations. I also came
to know about their working and programming step by step.