SDBA-§3.5-3 Inserting a value at the end of the queue

inserting in a queue
00
01
02
03
04
05
06
07
08
void push(char value, struct Node *tail){
	struct Node *temp;
	temp=initLLNode(val);
	
	temp->next=tail;
	tail->next->next=temp;
	tail->next=temp;
	return;
}
Animation © 2001, 2006 by J. D. White. For use in conjunction with the book, "Structuring data and building algorithms -- an ANSI-C approach" by I. Chai and J. D. White, (McGraw-Hill, 2006).