0
I know that to define a word (string) in C, it is necessary to use a vector of characters, with a defined number of characters that will be used. However, how can I use a multi-word vector, that is, a string vector? The reason for my question is an exercise in which I must create an array that stores the name of 10 products. Thanks in advance!
Another possibility is to use dynamic memory allocation by declaring a pointer to char and using the malloc function with the desired size.
– anonimo