I have a project for school that i am working on, and i cant figure out how to store names in an array. i have it declared as
char firstname[25];
char lastname[25];
but i was told that just stored one string and when i go to print out the names that are input, it just prints the last one i put in in all the slots. So I was wondering what the easiest way to store all the names in the arrays and print them out. The only thing i could find on the internet was to make an array of string arrays , but im not sure how to do that.
Thanks.