wrong output
Queue implementation with circular arrays
@ayu2321, these are some errors in your code :-
- at line 11 , arr[maxsize]={0} , will only make arr[maxsize]=0, not the whole range (0-maxsize-1)
- In enqueue function you are not adding the data , you should do
arr[rear]=data;
corrected code :-
In case of any doubt feel free to ask