I understand what you are saying. I was trying to avoid having a bunch of arrays declared at the top of the program by declaring them locally inside a function. Since profile[x] isn't used anywhere else in the program I wanted to keep it contained in the one function that does use it.
I was under the impression that it was bad practice to have arrays declared at the top of the program if they are not going to be used throughout it. Is this false?
I was under the impression that it was bad practice to have arrays declared at the top of the program if they are not going to be used throughout it. Is this false?