Problem with the code part

Understood the logic but the code. Like how the char array is a 2-d array.

Not able to dry run it from printSpellings(n / 10)

hello @udatta
note : n/10 will remove last digit from the number.
so if n is 1234 then n/10 = 123
first we made call for 2048 which will call -> 204 which will call -> 20 which will call -> 2 which will call 0.
0 is base case so control will return back to 2 and 2 will get printed and control returned to 20 so on.

I got the dry run, but how the char array is a 2-d array.

it is for storing words.
the words are stored something like this->
ss

thats why we need 2d array.

I did not know this, form where can I study this thing.

each string is a char array, so to store multiple string , u need to 2d array.

where each row will store one string.

Thank you, got it. It is an useful info.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.