Skip to content

Instantly share code, notes, and snippets.

@easleyschool
Created October 10, 2019 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save easleyschool/e9067b75c0945a4edae0813dd59f6a49 to your computer and use it in GitHub Desktop.
Save easleyschool/e9067b75c0945a4edae0813dd59f6a49 to your computer and use it in GitHub Desktop.
int dequeue()
{
return a[0]; //returning the first element
for (i = 0; i < tail-1; i++) //shifting all other elements
{
a[i] = a[i+1];
tail--;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment