Consider the following program code
@array - (1..5);
print(shift(@array) . " ");
print(shift(@array) . " ");
print(pop(@array) . " ");
print(pop(@array( . " ");
push(@array, "SIX");
print(shift(@array) . " ");
print(shift(@array) . " ");
What is the result of executing this program code?
- The code will output the following
1 2 5 4 SIX 3 - The code will output the following
5 4 1 2 3 SIX - The code will output the following
1 2 5 4 3 SIX - The code will output the following
5 4 1 2 SIX 3
Reveal Solution Next Question