If you usescanf("%s",&str[i]); then you can input 10 names like ravi, rama, kapil ..etc. But only the first letter of each names will be storedIt you usescanf("%c",&str[i]); then you will be able to input only 10 characters.
With %s it will take 9 name or words but prints only starting alphabets...and with %c it will take characters and prints 9 characters which have entered....for eg:-with %s it can take hello,going,sitt...