Question: Question 11 (10 points) Explain the functionality of lines in the following piece of code. The example is shown below: 1. int inserto { 2.
Question 11 (10 points) Explain the functionality of lines in the following piece of code. The example is shown below: 1. int inserto { 2. int num; 3. printf(" Enter the element in Queue "); 4. scanf("%d",&num); 5. if (rear MAX-1) 6. printf(" OVERFLOW"); 7. if (front == -1 && rear == -1) 8. front = rear = 0; else 9. rear ++; 10. queue[rear]= num; 11. return num; } Example: Line no. 1- A function named insert () is defined. Now, Explain Line No. 2-11 (1 mark each)- Total 10 marks Paragraph
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
