+ 1

Can you explain, where is the problem of this code?

Code link: https://code.sololearn.com/c16eWwX4P084/?ref=app

17th Mar 2018, 2:17 PM
Mohammad Ismail
Mohammad Ismail - avatar
5 Answers
+ 1
line no 39 it should be i = i - 1 not i = i + 1 this was creating infinite loop
17th Mar 2018, 2:27 PM
‎ ‏‏‎Anonymous Guy
+ 1
Still consol warning like that, warning: incompatible implicit declaration of built in function 'strlen' [ enabled by default ]
17th Mar 2018, 2:39 PM
Mohammad Ismail
Mohammad Ismail - avatar
+ 1
you need to add #include<string.h> in the beginning for using strlen() function
17th Mar 2018, 2:46 PM
‎ ‏‏‎Anonymous Guy
0
you are absolutely right...@Mr.Sreejith...
17th Mar 2018, 4:08 PM
Rifat Bin Jahanara
Rifat Bin Jahanara - avatar
0
thanks if you have any doubt ask here
17th Mar 2018, 4:19 PM
‎ ‏‏‎Anonymous Guy