Examveda

What will be the output of the following?
array1 = [1,2,3]
array2 = [0,0,0]
if array1 >= array2
print "Greater or equal"
else 
    print "Not equal"
end

A. Greater or equal

B. Not equal

C. Error

D. None of the mentioned

Answer: Option C


Join The Discussion

Related Questions on Arrays, Hashes and Strings in Ruby