it outputs like [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
instead of full name why would i stop at 59 instead of a 100 ? its a name of 60 char thats 100 titles
i made it with normal for loop and it worked
Code:
#include <stdio.h>
#include <ctype.h>
int main(void)
{
char title[60][100];
char result;
int counter;
for(counter=0;counter<=100;counter++)
{
fputs("Have you anymore cd to enter? (y/n)",stdout);
scanf("%c",&result);
getchar();
result=toupper(result);
if(result!='Y')
{
break;
}
fputs("Please enter your name: ",stdout);
fgets(title[counter],60,stdin);
fputs("Press enter to see the next character of the title saver: ",stdout);
getchar();
/*output cd details*/
printf("the title number <<%d>> : %s",counter+1,title[counter]);
}return 0;}
but i understand forever loops more.