Examveda

What is the output of the given code?
a=["hey", "ruby", "language"]
b=["hey", "language", "ruby"]
if a==b
    print "Equal"
else
    print "Not equal"
end

A. Equal

B. Error

C. Not equal

D. None of the mentioned

Answer: Option C


Join The Discussion

Related Questions on Arrays, Hashes and Strings in Ruby