I did the following code. But the when i add %s to print the name , the whole code stops after 1 iteration and either the name or the t[i] won\'t print. Code works fine if i