here's the example of the code
i want to make the question, Enter the name of guitar, be repeated 5 times, for user to input 5 different names, then getting output with 5 different names. any error i did above there? as the thing didnt work out.Code:#include <stdio.h> void initialize (void); void menu (void); int main (void) { initialize (); return 0; } void initialize () { char choice[10]; int i; for (i=0;i<5;i++) { printf("\nEnter the name of guitar : "); scanf("%s",&choice[i]); } for (i=0;i<5;i++) { printf("%s\n",choice[i]); } }
furthermore, i dont really understand how does array works