I am starting to learn C and have a question about arrays.
Here I have a 2-dimensional simple array of characters:
// populate indexes
puts function is strictly for C-style strings. If you pass it a pointer to something other than a C-style string, garbage is likely to result. How are you expecting it to know how many characters to output?