IT HOME Programming Care
Showing posts with label CSE 204 Note. Show all posts
Showing posts with label CSE 204 Note. Show all posts
Tuesday, February 21, 2017
Saturday, February 11, 2017
Sunday, January 29, 2017
Thursday, November 17, 2016
Wednesday, November 16, 2016
Queue Enqueue and Dequeue Link List
10:56 PM
4th Semester Note, C Programming, CSE 204 Note, DATA STRUCTURE NOTE, HAND NOTE, PROGRAMMING, Second Year Note
No comments
Program for Enqueue in Link List with c program
| Queue Enqueue Dequeue in link list |
// TIME: 10.53PM, Date: 16-11-16, Created by Md. Sohidul Islam Shoikat.
// Link List Queue Enqueue and Dequeue :
//Program 1: Link List Enqueue:
#include<stdio.h>
main()
{
int f=0,r=0,n=6;
int q[6];
int item;
while(1)
{
printf("enter a value: ");
scanf("%d",&item);
r=(r+1)%6;
if(r==f)
{
r=(r-1)%6;
printf("the queue is full.\nand r=%d",r);
}
else
q[r]=item;
printf("the input value is: %d \nand the index number is: %d\n",item,r);
}
}
Monday, June 27, 2016
Subscribe to:
Posts (Atom)















