Which one is the fastest/least memory consuming option of these two:
struct {
int index;
char string[10];
} a[10];
or
struct {
int index[10];
char string[10][10];
} a;
The first one is clearly easier to use and implement. I also have to mention I will dynamically allocate them. But which one will run faster or be least time consuming?
Thank you!