Created
October 10, 2019 03:44
-
-
Save easleyschool/e9067b75c0945a4edae0813dd59f6a49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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