Hi. I'm a noob so even if this sounds ridiculous please don't be mad . I am trying to make a "dequeue" function that returns last element in the queue in int type. The problem is it needs to return some error flag when the queue is empty. The error flag must return internally so that it does not disrupt the entire program. It will only handled by the function that calls it. Assigning a very unlikely integer as an error flag could be done, or i can add another 'if' statement whenever i call the function, but it is too messy and repetitive. What is the clean way to do it? Thanks in advanceCode:int dequeue() { int extracted_int; if ( tail_index == -1 ) { return NULL; // this is the part where i am stuck } else { extracted_int = queue[tail_index]; tail_index = tail_index - 1; } }