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?
A.
The code will output the following
1 2 5 4 SIX 3
B.
The code will output the following
5 4 1 2 3 SIX
C.
The code will output the following
1 2 5 4 3 SIX
D.
The code will output the following
5 4 1 2 SIX 3