Actually i first tried with th given code for which the output was:
Code:
(ike
I don't know why....

But then when I changed str1[3] to str1[4], the problem got solved immediately....cna anyone explain me why??