Thanks a lot for the program...
I think there is small change required in the qdelete function...
void qdelete(node **front,node **rear)
node *delnode; /* Node to be deleted */
if((*front)==NULL && (*rear)==NULL)
printf("\nQueue is empty to delete any element\n");
(*front)->rear = NULL;