Could not able to solve this.. I am implementing a queue. After writing the complete code I
You can't initialize variable using Q.front = 0; Q.rear = 0; in global scope. Those statements should be inside main in your case.
Q.front = 0; Q.rear = 0;
main