Strlen in codeblock IDE

I’m not able to use strlen function to calculate length of an array … Im executing my program in IDE (Code::Blocks 20.03

It says that…error : “strlen” was not not declared in the scope

hi @apoorv.chauhann please share your code using CB IDE so that I can assist you further.

@apoorv.chauhann Save your code on ide.codingblocks.com and share its link

@apoorv.chauhann have you included “cstring” header file? If not then include it as strlen is defined inside cstring library.

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.