String - is palindrome?

My code shows segmentation fault, how could i correct it? https://ide.codingblocks.com/s/268448

@Sejal.Aloria here is the corrected code https://ide.codingblocks.com/s/268469
Please mark the doubt as resolved in case of no further queries

Two test cases are still not passed

@Sejal.Aloria your return condition is incorrect use == for comparison, you are usng = which is the assignment operator.