Length of Queue of type linked list by R4R Team

Following is the function that find the length of the queue.

void length()
{
struct node *ptr;
int len=0;
ptr=front;
while(ptr!=NULL)
{
len++;
ptr=ptr->next;
}
printf("Length of queue is %d",len);
}




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!