Hey,
C newbie here. I have an assignment to input a list of names then sort them alphabetically. I'm alright with the sorting I think. But only once I figure out how to save the list of strings.
So do I need an array?
I tried delaring
char name[n][10]; //n being the amount of names required, as input by the user, 10 being the max characters in a name. this look right?
but it said: error C2143: syntax error : missing ';' before 'type'
I was hoping to have a for loop of printf and scanf to get all the names.
Any tips on this? Thanks!