Queue implementation with circular arrays

wrong output

@ayu2321, these are some errors in your code :-

  1. at line 11 , arr[maxsize]={0} , will only make arr[maxsize]=0, not the whole range (0-maxsize-1)
  2. 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 :slight_smile: