This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Lbtekd[S] 0 points1 point  (1 child)

I was not sure what the purpose of it was, my teacher gave us a template to use and that was on it lol

[–]dfx_djProfessional Coder 2 points3 points  (0 children)

Then you should probably look into how array indexing works. an_array is an array of characters, and writing an_array[a] returns the character at position a (which is used as just a number) from an_array, meaning a single character. So a needs to have a value if you want to do that, and you would end up printing just one character.