PrepAway - Latest Free Exam Questions & Answers

What is the output of this code?

Consider the following program code:
@arrayA = (10, 20, 30);
@arrayB = @arrayA;
$arrayB[1] = 40;
print $arrayA[1];
What is the output of this code?

PrepAway - Latest Free Exam Questions & Answers

A.
10

B.
20

C.
30

D.
40


Leave a Reply