Question -
Answer -
/*Function in C++ to perform insert in a dynamic queue is given as*/
struct DVD┬а
{
long No; // DVD Number┬а
char Title[20]; // DVD Title┬а
DVD *Link┬а
};
void insert(struct DVD *start, char data[20] ) ;
{
DVD *q, *temp;
// Dynamic memory has been allocated for a node
temp=(DVD*)malloc(size of (DVD));┬а
temp=Title[20]=data[20] ;┬а
temp"Next=NULL;
if (start┬а ┬а =┬а ┬а = NULL) /*Element
inserted at end*/
while (q"Next ! = NULL)
q=q.Next;
q.Next = temp;
}┬а