Https://ide.codingblocks.com/s/479785

In this problem i am not able to calculate the size of character array due to which it is giving TLE while if i am using right amount of size my answer is correct please tell me where i am wrong and how to calculate the size of character array and use it in for loops .

hello @architsuryavanshi

use strlen function to get the size of char array.

also why u are iterating only upto 9. u need to iterate till array end.

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.