program segment for the deletion of any element


Program segment for the deletion of any element from the queue

delmq(i)  /* Delete any element from queue i */

{

int i,x;

if ( front[i] == rear[i])

printf("Queue is empty");

{

x = mqueue[front[i]];

front[i] = front[i]-1 ;

return x;

}

}

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: program segment for the deletion of any element
Reference No:- TGS0413484

Expected delivery within 24 Hours