What function is commonly used to find the length of a string in C?
- strcat()
- strcmp()
- strcpy()
- strlen()
In C, strlen() is commonly used to find the length of a string. It counts the number of characters in a string until the null-terminator is encountered.
Loading...
Related Quiz
- What is the significance of the return type in a function declaration in C?
- What term is used to describe the process of calling a function within itself?
- What is the time complexity of the bubble sort algorithm in the best case?
- In C, what is the result of the expression (5 & 3)?
- When dealing with large datasets, what is the advantage of using 'long long int' over 'int'?