Printing our word vertically is a bit dumb. So we'll use yet another array to enable us to print the word normally or horizontally. But we need to find out how to print array elements from an array first. This example program uses a for loop to print the first five elements It reads, each on a different line. That helps us understand how to print but it still prints vertically. There are a few rules to printing the array elements horizontally.
I'll use this example I found to explain. Here we use a 10 element array called test of the data type char, we fold it indices with our ob OTC zero and x, x, x. Then we use the string variable string variables, unlike char can have have many characters. For a start, we'll just create the space, but we'll leave the string empty. Then we will pull the string with the elements from the array. The rule is that the last index of the string must end with a zero.
If we use the command string from chars, this program will read up to the sea of robots See, the Xs after the zero will be omitted.