You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main function should have a return type of int, not void. This is important because it indicates the exit status of the program to the operating system.
In dequeue, the for loop to transfer elements from stack1 to stack2 doesn't handle the scenario where count is 0 properly.
The text was updated successfully, but these errors were encountered:
The main function should have a return type of int, not void. This is important because it indicates the exit status of the program to the operating system.
In dequeue, the for loop to transfer elements from stack1 to stack2 doesn't handle the scenario where count is 0 properly.
The text was updated successfully, but these errors were encountered: