Mapped Strings Problem

I wrote this code but it doesn’t seem to give any output. Please help me finding the problem

You are returning a string from non-returnable type function, and you need to print in order to get any output.

Thanks for the reply
I have printed the output only sir, have returned the recursion call. Can you please tell what change should I do in the code, I’m not able to figure out

Firstly, the correct way of declaring hashmap array would be char hashmap[27] = {…}, so correct it. Then you must face few compilations errors, correct them. Your code shall start giving output.

Thanks. Did the suggested changes and the code runs perfectly

1 Like