Y

Yami Thakur • 9.05K Points
Tutor III

Q. What will be the output of the given ruby code?

Code:
a = [ a, b, c ] puts a.pack(a3a3a3)
  • (A) ABC
  • (B) abc
  • (C) BCD
  • (D) bcd
  • Correct Answer - Option(B)
  • Views: 79
  • Filed under category Ruby

Explanation by: Yami Thakur
This will produce the following result : abc

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics