i was solving a problem on hackerrank, it failed 3 test cases when i swapped the strings by using a temporary char array. but when i swapped them by using a char type pointer, it worked perfectly.
i remember that some issue is there in using a temporary string… please tellme