Excel title issue

in the above link the question link to gfg and the code i have written is given for excel title question.

  1. what is the mistake in the code? why is it not producing any output?

  2. how to correct that mistake?

3.have i written the correct time complexity for the above question?

yes its correct

u are tying to use string and char* simultaneously

convert everything to string

sharing code link which produces a o/p but not the correct asnwer


try updating by urself

yes sir the code is running correct now but i can not understand what happens if i write res[i++]=map[n%26] and put ‘/0’ at the end .why that does not produce any output?

image
i suppose this kind of operation is not permissible /
like u can do it but nothing is getting printed

treat it like a string rather than char array