Well I actually want to avoid that, but if there's no other way... I'm not using char array for text (words and such), but for array of single chars, which have no direct relation to each other.
Is it generally bad to use char arrays? If yes, then why?
Is there any known reason why you can't assign values directly in a class? I don't see any reason myself, since nothing has "physical" existence until you create an object, but I know there must be a good one.
Does assigning a value to a whole array with a loop uses same amount of resources as assigning it the way I wrote above? Is there actually any big difference between the two in the "core"?
Sorry for so many questions, but the more I know the better.
P.S. Would using a vector of chars instead of char array create a null-terminated vector automatically?
Assuming you initialize i to 0... Memory and stability wise, no, they are identical.
CPU wise is harder to say. It depends on your compiler and optimizer. I would
not concern myself with it though, as the difference is not likely to be noticeable
even if you ran the code hundreds of thousands of times.