char hello[] = "hello"; #C hello = ['h', 'e', 'l', 'l', 'o'] #Ruby
If I output the hello [0] class in Ruby, it says "String". This is because there are single string quotes in Ruby, and there seems to be no such thing as a char. The other day I told my colleague that he had a lot of characters, and he said: "No, no, I have a number of lines." Nitriki, yes, but technically, maybe heโs right. Coming from the world of C, I usually donโt think of a single character like String. Do you agree that the hello array above is an array of strings, not an array of characters?
source share