SlideShare a Scribd company logo
1 of 4
Download to read offline
include
#include
//int enqueue(struct node *,struct node *);
void display();
int main()
{
enqueue();
}
typedef struct data
{
char *pStr;
}Data;
typedef struct node
{
Data item;
char *pStr;
struct node *pNext;
}Node;
typedef struct queue
{
Node *pHead;
Node *pTail;
}Queue;
Node *pHead;
Node *pTail;
int enqueue(Queue *pQueue,Data newData)
{
Node *temp;
char *pStr;
pStr=(char *)malloc(20 *sizeof(char));
printf("Enter the node");
scanf("%s",temp->pStr);
temp=(Node*)malloc(sizeof(Node));
temp->item=temp->pStr;
temp->pNext=NULL;
if(pTail==NULL)
{
pHead=temp;
pTail=temp;
}
else
{
pTail->pNext=temp;
pTail=temp;
}
return 1;
}
void display()
{
Node *ptr;
if(pTail==NULL)
printf("Queue is empty ");
else
{
ptr=pHead;
printf("The elements of the queue are :");
while(ptr!=NULL)
{
printf("%st",ptr->item);
ptr=ptr->pNext;
}
}
}
Solution
include
#include
//int enqueue(struct node *,struct node *);
void display();
int main()
{
enqueue();
}
typedef struct data
{
char *pStr;
}Data;
typedef struct node
{
Data item;
char *pStr;
struct node *pNext;
}Node;
typedef struct queue
{
Node *pHead;
Node *pTail;
}Queue;
Node *pHead;
Node *pTail;
int enqueue(Queue *pQueue,Data newData)
{
Node *temp;
char *pStr;
pStr=(char *)malloc(20 *sizeof(char));
printf("Enter the node");
scanf("%s",temp->pStr);
temp=(Node*)malloc(sizeof(Node));
temp->item=temp->pStr;
temp->pNext=NULL;
if(pTail==NULL)
{
pHead=temp;
pTail=temp;
}
else
{
pTail->pNext=temp;
pTail=temp;
}
return 1;
}
void display()
{
Node *ptr;
if(pTail==NULL)
printf("Queue is empty ");
else
{
ptr=pHead;
printf("The elements of the queue are :");
while(ptr!=NULL)
{
printf("%st",ptr->item);
ptr=ptr->pNext;
}
}
}

More Related Content

Similar to includestdio.h #includestdlib.h int enqueue(struct node ,.pdf

program on string in java Lab file 2 (3-year)
program on string in java Lab file 2 (3-year)program on string in java Lab file 2 (3-year)
program on string in java Lab file 2 (3-year)Ankit Gupta
 
Lab Week 2 Game Programming.docx
Lab Week 2 Game Programming.docxLab Week 2 Game Programming.docx
Lab Week 2 Game Programming.docxteyaj1
 
Data Structures Using C Practical File
Data Structures Using C Practical File Data Structures Using C Practical File
Data Structures Using C Practical File Rahul Chugh
 
Please teach me how to fix the errors and where should be modified. .pdf
Please teach me how to fix the errors and where should be modified. .pdfPlease teach me how to fix the errors and where should be modified. .pdf
Please teach me how to fix the errors and where should be modified. .pdfamarndsons
 
i nsert+in+ link list
i nsert+in+ link listi nsert+in+ link list
i nsert+in+ link listEAJAJAhamed
 
#includeiostream#includecstdio#includecstdlibusing names.pdf
#includeiostream#includecstdio#includecstdlibusing names.pdf#includeiostream#includecstdio#includecstdlibusing names.pdf
#includeiostream#includecstdio#includecstdlibusing names.pdfKUNALHARCHANDANI1
 
Program of sorting using shell sort #include stdio.h #de.pdf
 Program of sorting using shell sort  #include stdio.h #de.pdf Program of sorting using shell sort  #include stdio.h #de.pdf
Program of sorting using shell sort #include stdio.h #de.pdfanujmkt
 
#ifndef LINKED_LIST_ #define LINKED_LIST_ templateclass It.pdf
 #ifndef LINKED_LIST_ #define LINKED_LIST_ templateclass It.pdf #ifndef LINKED_LIST_ #define LINKED_LIST_ templateclass It.pdf
#ifndef LINKED_LIST_ #define LINKED_LIST_ templateclass It.pdfangelsfashion1
 
Implement of c & its coding programming by sarmad baloch
Implement of c & its coding  programming by sarmad balochImplement of c & its coding  programming by sarmad baloch
Implement of c & its coding programming by sarmad balochSarmad Baloch
 
mainpublic class AssignmentThree {    public static void ma.pdf
mainpublic class AssignmentThree {    public static void ma.pdfmainpublic class AssignmentThree {    public static void ma.pdf
mainpublic class AssignmentThree {    public static void ma.pdffathimafancyjeweller
 
M 0 1 2 3 4 5 6 7 0.pdf
 M  0  1  2  3  4  5  6  7    0.pdf M  0  1  2  3  4  5  6  7    0.pdf
M 0 1 2 3 4 5 6 7 0.pdfajay1317
 
Can you please debug this Thank you in advance! This program is sup.pdf
Can you please debug this Thank you in advance! This program is sup.pdfCan you please debug this Thank you in advance! This program is sup.pdf
Can you please debug this Thank you in advance! This program is sup.pdfFashionBoutiquedelhi
 
-- Task 2- Debugging a program with stacks- queues- and doubly-linked.docx
-- Task 2- Debugging a program with stacks- queues- and doubly-linked.docx-- Task 2- Debugging a program with stacks- queues- and doubly-linked.docx
-- Task 2- Debugging a program with stacks- queues- and doubly-linked.docxAdamq0DJonese
 
Singly linked list program in data structure - Vtech
Singly linked list program in data structure - VtechSingly linked list program in data structure - Vtech
Singly linked list program in data structure - VtechVtech Academy of Computers
 
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDYDATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDYMalikireddy Bramhananda Reddy
 
C program to insert a node in doubly linked list
C program to insert a node in doubly linked listC program to insert a node in doubly linked list
C program to insert a node in doubly linked listSourav Gayen
 
My C proggram is having trouble in the switch in main. Also the a co.pdf
My C proggram is having trouble in the switch in main. Also the a co.pdfMy C proggram is having trouble in the switch in main. Also the a co.pdf
My C proggram is having trouble in the switch in main. Also the a co.pdfmeerobertsonheyde608
 

Similar to includestdio.h #includestdlib.h int enqueue(struct node ,.pdf (20)

program on string in java Lab file 2 (3-year)
program on string in java Lab file 2 (3-year)program on string in java Lab file 2 (3-year)
program on string in java Lab file 2 (3-year)
 
Lab Week 2 Game Programming.docx
Lab Week 2 Game Programming.docxLab Week 2 Game Programming.docx
Lab Week 2 Game Programming.docx
 
Data Structures Using C Practical File
Data Structures Using C Practical File Data Structures Using C Practical File
Data Structures Using C Practical File
 
Please teach me how to fix the errors and where should be modified. .pdf
Please teach me how to fix the errors and where should be modified. .pdfPlease teach me how to fix the errors and where should be modified. .pdf
Please teach me how to fix the errors and where should be modified. .pdf
 
i nsert+in+ link list
i nsert+in+ link listi nsert+in+ link list
i nsert+in+ link list
 
#includeiostream#includecstdio#includecstdlibusing names.pdf
#includeiostream#includecstdio#includecstdlibusing names.pdf#includeiostream#includecstdio#includecstdlibusing names.pdf
#includeiostream#includecstdio#includecstdlibusing names.pdf
 
PathOfMostResistance
PathOfMostResistancePathOfMostResistance
PathOfMostResistance
 
Program of sorting using shell sort #include stdio.h #de.pdf
 Program of sorting using shell sort  #include stdio.h #de.pdf Program of sorting using shell sort  #include stdio.h #de.pdf
Program of sorting using shell sort #include stdio.h #de.pdf
 
#ifndef LINKED_LIST_ #define LINKED_LIST_ templateclass It.pdf
 #ifndef LINKED_LIST_ #define LINKED_LIST_ templateclass It.pdf #ifndef LINKED_LIST_ #define LINKED_LIST_ templateclass It.pdf
#ifndef LINKED_LIST_ #define LINKED_LIST_ templateclass It.pdf
 
Implement of c & its coding programming by sarmad baloch
Implement of c & its coding  programming by sarmad balochImplement of c & its coding  programming by sarmad baloch
Implement of c & its coding programming by sarmad baloch
 
week-13x
week-13xweek-13x
week-13x
 
mainpublic class AssignmentThree {    public static void ma.pdf
mainpublic class AssignmentThree {    public static void ma.pdfmainpublic class AssignmentThree {    public static void ma.pdf
mainpublic class AssignmentThree {    public static void ma.pdf
 
week-14x
week-14xweek-14x
week-14x
 
M 0 1 2 3 4 5 6 7 0.pdf
 M  0  1  2  3  4  5  6  7    0.pdf M  0  1  2  3  4  5  6  7    0.pdf
M 0 1 2 3 4 5 6 7 0.pdf
 
Can you please debug this Thank you in advance! This program is sup.pdf
Can you please debug this Thank you in advance! This program is sup.pdfCan you please debug this Thank you in advance! This program is sup.pdf
Can you please debug this Thank you in advance! This program is sup.pdf
 
-- Task 2- Debugging a program with stacks- queues- and doubly-linked.docx
-- Task 2- Debugging a program with stacks- queues- and doubly-linked.docx-- Task 2- Debugging a program with stacks- queues- and doubly-linked.docx
-- Task 2- Debugging a program with stacks- queues- and doubly-linked.docx
 
Singly linked list program in data structure - Vtech
Singly linked list program in data structure - VtechSingly linked list program in data structure - Vtech
Singly linked list program in data structure - Vtech
 
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDYDATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
 
C program to insert a node in doubly linked list
C program to insert a node in doubly linked listC program to insert a node in doubly linked list
C program to insert a node in doubly linked list
 
My C proggram is having trouble in the switch in main. Also the a co.pdf
My C proggram is having trouble in the switch in main. Also the a co.pdfMy C proggram is having trouble in the switch in main. Also the a co.pdf
My C proggram is having trouble in the switch in main. Also the a co.pdf
 

More from galagirishp

alcohols also do not give tollens test.... only a.pdf
                     alcohols also do not give tollens test.... only a.pdf                     alcohols also do not give tollens test.... only a.pdf
alcohols also do not give tollens test.... only a.pdfgalagirishp
 
Acid Buffer - Weak acid + plus its salt Basic B.pdf
                     Acid Buffer - Weak acid + plus its salt Basic B.pdf                     Acid Buffer - Weak acid + plus its salt Basic B.pdf
Acid Buffer - Weak acid + plus its salt Basic B.pdfgalagirishp
 
Total vapor pressure of mixture = P(benzene) + P(.pdf
                     Total vapor pressure of mixture = P(benzene) + P(.pdf                     Total vapor pressure of mixture = P(benzene) + P(.pdf
Total vapor pressure of mixture = P(benzene) + P(.pdfgalagirishp
 
some data is missin .pdf
                     some data is missin                              .pdf                     some data is missin                              .pdf
some data is missin .pdfgalagirishp
 
reaction is missing .pdf
                     reaction is missing                              .pdf                     reaction is missing                              .pdf
reaction is missing .pdfgalagirishp
 
Not necessarily. It could very well mean that you.pdf
                     Not necessarily. It could very well mean that you.pdf                     Not necessarily. It could very well mean that you.pdf
Not necessarily. It could very well mean that you.pdfgalagirishp
 
For Li, B, and F they only formed single bond bet.pdf
                     For Li, B, and F they only formed single bond bet.pdf                     For Li, B, and F they only formed single bond bet.pdf
For Li, B, and F they only formed single bond bet.pdfgalagirishp
 
Enzyme Induction- the synthesis of enzymes in res.pdf
                     Enzyme Induction- the synthesis of enzymes in res.pdf                     Enzyme Induction- the synthesis of enzymes in res.pdf
Enzyme Induction- the synthesis of enzymes in res.pdfgalagirishp
 
Buffer Capacity is the ranges of volume of acid o.pdf
                     Buffer Capacity is the ranges of volume of acid o.pdf                     Buffer Capacity is the ranges of volume of acid o.pdf
Buffer Capacity is the ranges of volume of acid o.pdfgalagirishp
 
a. CH4 has no free valence electrons so it can no.pdf
                     a. CH4 has no free valence electrons so it can no.pdf                     a. CH4 has no free valence electrons so it can no.pdf
a. CH4 has no free valence electrons so it can no.pdfgalagirishp
 
We are living in a world where cyber security is a top priority for .pdf
We are living in a world where cyber security is a top priority for .pdfWe are living in a world where cyber security is a top priority for .pdf
We are living in a world where cyber security is a top priority for .pdfgalagirishp
 
highest bond energy molecule is CO because its bond order is = 3.pdf
highest bond energy molecule is CO because its bond order is = 3.pdfhighest bond energy molecule is CO because its bond order is = 3.pdf
highest bond energy molecule is CO because its bond order is = 3.pdfgalagirishp
 
Urine is concentrated byc) facilitated diffusion in the collecting d.pdf
Urine is concentrated byc) facilitated diffusion in the collecting d.pdfUrine is concentrated byc) facilitated diffusion in the collecting d.pdf
Urine is concentrated byc) facilitated diffusion in the collecting d.pdfgalagirishp
 
The two fund theorem is the establishment of two efficient Funds.pdf
The two fund theorem is the establishment of two efficient Funds.pdfThe two fund theorem is the establishment of two efficient Funds.pdf
The two fund theorem is the establishment of two efficient Funds.pdfgalagirishp
 
the nuclide is147N which is nitrogenSolutionthe nuclide .pdf
the nuclide is147N which is nitrogenSolutionthe nuclide .pdfthe nuclide is147N which is nitrogenSolutionthe nuclide .pdf
the nuclide is147N which is nitrogenSolutionthe nuclide .pdfgalagirishp
 
The Programmer has created multiple entry point which can be used to.pdf
The Programmer has created multiple entry point which can be used to.pdfThe Programmer has created multiple entry point which can be used to.pdf
The Programmer has created multiple entry point which can be used to.pdfgalagirishp
 
The halide is iodine as it gives pale yellow precipitate with AgNO3 .pdf
The halide is iodine as it gives pale yellow precipitate with AgNO3 .pdfThe halide is iodine as it gives pale yellow precipitate with AgNO3 .pdf
The halide is iodine as it gives pale yellow precipitate with AgNO3 .pdfgalagirishp
 
The answer isd. The pi electrons are distributed over the entire .pdf
The answer isd. The pi electrons are distributed over the entire .pdfThe answer isd. The pi electrons are distributed over the entire .pdf
The answer isd. The pi electrons are distributed over the entire .pdfgalagirishp
 
Modified Code Game.java­import java.util.;public class Game.pdf
Modified Code Game.java­import java.util.;public class Game.pdfModified Code Game.java­import java.util.;public class Game.pdf
Modified Code Game.java­import java.util.;public class Game.pdfgalagirishp
 
(a)Solution(a).pdf
(a)Solution(a).pdf(a)Solution(a).pdf
(a)Solution(a).pdfgalagirishp
 

More from galagirishp (20)

alcohols also do not give tollens test.... only a.pdf
                     alcohols also do not give tollens test.... only a.pdf                     alcohols also do not give tollens test.... only a.pdf
alcohols also do not give tollens test.... only a.pdf
 
Acid Buffer - Weak acid + plus its salt Basic B.pdf
                     Acid Buffer - Weak acid + plus its salt Basic B.pdf                     Acid Buffer - Weak acid + plus its salt Basic B.pdf
Acid Buffer - Weak acid + plus its salt Basic B.pdf
 
Total vapor pressure of mixture = P(benzene) + P(.pdf
                     Total vapor pressure of mixture = P(benzene) + P(.pdf                     Total vapor pressure of mixture = P(benzene) + P(.pdf
Total vapor pressure of mixture = P(benzene) + P(.pdf
 
some data is missin .pdf
                     some data is missin                              .pdf                     some data is missin                              .pdf
some data is missin .pdf
 
reaction is missing .pdf
                     reaction is missing                              .pdf                     reaction is missing                              .pdf
reaction is missing .pdf
 
Not necessarily. It could very well mean that you.pdf
                     Not necessarily. It could very well mean that you.pdf                     Not necessarily. It could very well mean that you.pdf
Not necessarily. It could very well mean that you.pdf
 
For Li, B, and F they only formed single bond bet.pdf
                     For Li, B, and F they only formed single bond bet.pdf                     For Li, B, and F they only formed single bond bet.pdf
For Li, B, and F they only formed single bond bet.pdf
 
Enzyme Induction- the synthesis of enzymes in res.pdf
                     Enzyme Induction- the synthesis of enzymes in res.pdf                     Enzyme Induction- the synthesis of enzymes in res.pdf
Enzyme Induction- the synthesis of enzymes in res.pdf
 
Buffer Capacity is the ranges of volume of acid o.pdf
                     Buffer Capacity is the ranges of volume of acid o.pdf                     Buffer Capacity is the ranges of volume of acid o.pdf
Buffer Capacity is the ranges of volume of acid o.pdf
 
a. CH4 has no free valence electrons so it can no.pdf
                     a. CH4 has no free valence electrons so it can no.pdf                     a. CH4 has no free valence electrons so it can no.pdf
a. CH4 has no free valence electrons so it can no.pdf
 
We are living in a world where cyber security is a top priority for .pdf
We are living in a world where cyber security is a top priority for .pdfWe are living in a world where cyber security is a top priority for .pdf
We are living in a world where cyber security is a top priority for .pdf
 
highest bond energy molecule is CO because its bond order is = 3.pdf
highest bond energy molecule is CO because its bond order is = 3.pdfhighest bond energy molecule is CO because its bond order is = 3.pdf
highest bond energy molecule is CO because its bond order is = 3.pdf
 
Urine is concentrated byc) facilitated diffusion in the collecting d.pdf
Urine is concentrated byc) facilitated diffusion in the collecting d.pdfUrine is concentrated byc) facilitated diffusion in the collecting d.pdf
Urine is concentrated byc) facilitated diffusion in the collecting d.pdf
 
The two fund theorem is the establishment of two efficient Funds.pdf
The two fund theorem is the establishment of two efficient Funds.pdfThe two fund theorem is the establishment of two efficient Funds.pdf
The two fund theorem is the establishment of two efficient Funds.pdf
 
the nuclide is147N which is nitrogenSolutionthe nuclide .pdf
the nuclide is147N which is nitrogenSolutionthe nuclide .pdfthe nuclide is147N which is nitrogenSolutionthe nuclide .pdf
the nuclide is147N which is nitrogenSolutionthe nuclide .pdf
 
The Programmer has created multiple entry point which can be used to.pdf
The Programmer has created multiple entry point which can be used to.pdfThe Programmer has created multiple entry point which can be used to.pdf
The Programmer has created multiple entry point which can be used to.pdf
 
The halide is iodine as it gives pale yellow precipitate with AgNO3 .pdf
The halide is iodine as it gives pale yellow precipitate with AgNO3 .pdfThe halide is iodine as it gives pale yellow precipitate with AgNO3 .pdf
The halide is iodine as it gives pale yellow precipitate with AgNO3 .pdf
 
The answer isd. The pi electrons are distributed over the entire .pdf
The answer isd. The pi electrons are distributed over the entire .pdfThe answer isd. The pi electrons are distributed over the entire .pdf
The answer isd. The pi electrons are distributed over the entire .pdf
 
Modified Code Game.java­import java.util.;public class Game.pdf
Modified Code Game.java­import java.util.;public class Game.pdfModified Code Game.java­import java.util.;public class Game.pdf
Modified Code Game.java­import java.util.;public class Game.pdf
 
(a)Solution(a).pdf
(a)Solution(a).pdf(a)Solution(a).pdf
(a)Solution(a).pdf
 

Recently uploaded

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 

Recently uploaded (20)

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 

includestdio.h #includestdlib.h int enqueue(struct node ,.pdf

  • 1. include #include //int enqueue(struct node *,struct node *); void display(); int main() { enqueue(); } typedef struct data { char *pStr; }Data; typedef struct node { Data item; char *pStr; struct node *pNext; }Node; typedef struct queue { Node *pHead; Node *pTail; }Queue; Node *pHead; Node *pTail; int enqueue(Queue *pQueue,Data newData) { Node *temp; char *pStr; pStr=(char *)malloc(20 *sizeof(char)); printf("Enter the node"); scanf("%s",temp->pStr); temp=(Node*)malloc(sizeof(Node)); temp->item=temp->pStr; temp->pNext=NULL;
  • 2. if(pTail==NULL) { pHead=temp; pTail=temp; } else { pTail->pNext=temp; pTail=temp; } return 1; } void display() { Node *ptr; if(pTail==NULL) printf("Queue is empty "); else { ptr=pHead; printf("The elements of the queue are :"); while(ptr!=NULL) { printf("%st",ptr->item); ptr=ptr->pNext; } } } Solution include #include //int enqueue(struct node *,struct node *); void display(); int main()
  • 3. { enqueue(); } typedef struct data { char *pStr; }Data; typedef struct node { Data item; char *pStr; struct node *pNext; }Node; typedef struct queue { Node *pHead; Node *pTail; }Queue; Node *pHead; Node *pTail; int enqueue(Queue *pQueue,Data newData) { Node *temp; char *pStr; pStr=(char *)malloc(20 *sizeof(char)); printf("Enter the node"); scanf("%s",temp->pStr); temp=(Node*)malloc(sizeof(Node)); temp->item=temp->pStr; temp->pNext=NULL; if(pTail==NULL) { pHead=temp; pTail=temp; } else
  • 4. { pTail->pNext=temp; pTail=temp; } return 1; } void display() { Node *ptr; if(pTail==NULL) printf("Queue is empty "); else { ptr=pHead; printf("The elements of the queue are :"); while(ptr!=NULL) { printf("%st",ptr->item); ptr=ptr->pNext; } } }