In the above program in the line eleven if i comment it the program is runnning properly for int and double, but if I write the line eleven it will still working for char but not for int and float. The problem is that some how the program is working for int,double and char but why not for string in either cases?