Examveda

What is the output of the given code?
a=[1,2,3,4,5]
b=[1,2,3,4,5]
if a==b
    print "Equal"
else
    print "Not equal"
end

A. Equal

B. Error

C. Not equal

D. None of the mentioned

Answer: Option A


Join The Discussion

Related Questions on Arrays, Hashes and Strings in Ruby