printf ("Title >");
scanf ("%s", ctlg[x].title);
printf ("Title :%s \n", ctlg[i].title);
i've typed the program above to do a program on library catalog. When I type "The best book", the scanf function works well but when i wanted to print it back using the printf function, the title became "The".. can anyone help?