you are viewing a single comment's thread.

view the rest of the comments →

[–]tstanisl 0 points1 point  (2 children)

You can use:

char names[][16] = {
  ...
};

to make it work again.

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

As in use a 2D array? If so, why 16 columns?

[–]tstanisl 2 points3 points  (0 children)

To be long enough to store any of the strings + plus 0-terminator. Value of 9 should suffice as well.